Commit 530b2db1bffbd51f9fec7b9e98cc0fe91c1801d7
1 parent
35db0c4e
Exists in
master
and in
6 other branches
FIX: Changed icon extension
Showing
1 changed file
with
10 additions
and
10 deletions
Show diff stats
invesalius/gui/frame.py
@@ -36,7 +36,7 @@ import session as ses | @@ -36,7 +36,7 @@ import session as ses | ||
36 | import utils | 36 | import utils |
37 | 37 | ||
38 | # Layout tools' IDs - this is used only locally, therefore doesn't | 38 | # Layout tools' IDs - this is used only locally, therefore doesn't |
39 | -# need to be defined in constants.py | 39 | +# need to be defined in constants.py |
40 | VIEW_TOOLS = [ID_LAYOUT, ID_TEXT] =\ | 40 | VIEW_TOOLS = [ID_LAYOUT, ID_TEXT] =\ |
41 | [wx.NewId() for number in range(2)] | 41 | [wx.NewId() for number in range(2)] |
42 | 42 | ||
@@ -62,7 +62,7 @@ class Frame(wx.Frame): | @@ -62,7 +62,7 @@ class Frame(wx.Frame): | ||
62 | self.SetMenuBar(MenuBar(self)) | 62 | self.SetMenuBar(MenuBar(self)) |
63 | self.SetStatusBar(StatusBar(self)) | 63 | self.SetStatusBar(StatusBar(self)) |
64 | 64 | ||
65 | - # Set TaskBarIcon | 65 | + # Set TaskBarIcon |
66 | #TaskBarIcon(self) | 66 | #TaskBarIcon(self) |
67 | 67 | ||
68 | # Create aui manager and insert content in it | 68 | # Create aui manager and insert content in it |
@@ -76,7 +76,7 @@ class Frame(wx.Frame): | @@ -76,7 +76,7 @@ class Frame(wx.Frame): | ||
76 | """ | 76 | """ |
77 | Bind events related to pubsub. | 77 | Bind events related to pubsub. |
78 | """ | 78 | """ |
79 | - sub = ps.Publisher().subscribe | 79 | + sub = ps.Publisher().subscribe |
80 | sub(self._BeginBusyCursor, 'Begin busy cursor') | 80 | sub(self._BeginBusyCursor, 'Begin busy cursor') |
81 | sub(self._ShowContentPanel, 'Cancel DICOM load') | 81 | sub(self._ShowContentPanel, 'Cancel DICOM load') |
82 | sub(self._EndBusyCursor, 'End busy cursor') | 82 | sub(self._EndBusyCursor, 'End busy cursor') |
@@ -122,7 +122,7 @@ class Frame(wx.Frame): | @@ -122,7 +122,7 @@ class Frame(wx.Frame): | ||
122 | Centre().CloseButton(False).Floatable(False). | 122 | Centre().CloseButton(False).Floatable(False). |
123 | Hide().Layer(1).MaximizeButton(True). | 123 | Hide().Layer(1).MaximizeButton(True). |
124 | Name("Data").Position(1)) | 124 | Name("Data").Position(1)) |
125 | - | 125 | + |
126 | # This is the DICOM import panel. When the two panels above | 126 | # This is the DICOM import panel. When the two panels above |
127 | # are shown, this should be hiden | 127 | # are shown, this should be hiden |
128 | caption = _("Preview medical data to be reconstructed") | 128 | caption = _("Preview medical data to be reconstructed") |
@@ -284,7 +284,7 @@ class Frame(wx.Frame): | @@ -284,7 +284,7 @@ class Frame(wx.Frame): | ||
284 | the same ID's) | 284 | the same ID's) |
285 | """ | 285 | """ |
286 | id = evt.GetId() | 286 | id = evt.GetId() |
287 | - | 287 | + |
288 | if id == const.ID_DICOM_IMPORT: | 288 | if id == const.ID_DICOM_IMPORT: |
289 | self.ShowImportDicomPanel() | 289 | self.ShowImportDicomPanel() |
290 | elif id == const.ID_PROJECT_OPEN: | 290 | elif id == const.ID_PROJECT_OPEN: |
@@ -536,7 +536,7 @@ class ProgressBar(wx.Gauge): | @@ -536,7 +536,7 @@ class ProgressBar(wx.Gauge): | ||
536 | 536 | ||
537 | def SetPercentage(self, value): | 537 | def SetPercentage(self, value): |
538 | """ | 538 | """ |
539 | - Set value [0;100] into gauge, moving "status" percentage. | 539 | + Set value [0;100] into gauge, moving "status" percentage. |
540 | """ | 540 | """ |
541 | self.SetValue(int(value)) | 541 | self.SetValue(int(value)) |
542 | if (value >= 99): | 542 | if (value >= 99): |
@@ -674,7 +674,7 @@ class ProjectToolBar(wx.ToolBar): | @@ -674,7 +674,7 @@ class ProjectToolBar(wx.ToolBar): | ||
674 | 674 | ||
675 | path = os.path.join(d, "file_import_original.png") | 675 | path = os.path.join(d, "file_import_original.png") |
676 | BMP_IMPORT = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) | 676 | BMP_IMPORT = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) |
677 | - | 677 | + |
678 | path = os.path.join(d, "file_open_original.png") | 678 | path = os.path.join(d, "file_open_original.png") |
679 | BMP_OPEN = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) | 679 | BMP_OPEN = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) |
680 | 680 | ||
@@ -692,7 +692,7 @@ class ProjectToolBar(wx.ToolBar): | @@ -692,7 +692,7 @@ class ProjectToolBar(wx.ToolBar): | ||
692 | 692 | ||
693 | path = os.path.join(d, "file_import.png") | 693 | path = os.path.join(d, "file_import.png") |
694 | BMP_IMPORT = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) | 694 | BMP_IMPORT = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) |
695 | - | 695 | + |
696 | path = os.path.join(d, "file_open.png") | 696 | path = os.path.join(d, "file_open.png") |
697 | BMP_OPEN = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) | 697 | BMP_OPEN = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) |
698 | 698 | ||
@@ -821,8 +821,8 @@ class ObjectToolBar(wx.ToolBar): | @@ -821,8 +821,8 @@ class ObjectToolBar(wx.ToolBar): | ||
821 | path = os.path.join(d, "tool_rotate.gif") | 821 | path = os.path.join(d, "tool_rotate.gif") |
822 | BMP_ROTATE = wx.Bitmap(path, wx.BITMAP_TYPE_GIF) | 822 | BMP_ROTATE = wx.Bitmap(path, wx.BITMAP_TYPE_GIF) |
823 | 823 | ||
824 | - path = os.path.join(d, "tool_translate.png") | ||
825 | - BMP_MOVE =wx.Bitmap(path, wx.BITMAP_TYPE_PNG) | 824 | + path = os.path.join(d, "tool_translate.gif") |
825 | + BMP_MOVE =wx.Bitmap(path, wx.BITMAP_TYPE_GIF) | ||
826 | 826 | ||
827 | path = os.path.join(d, "tool_zoom.png") | 827 | path = os.path.join(d, "tool_zoom.png") |
828 | BMP_ZOOM = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) | 828 | BMP_ZOOM = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) |