Changeset 5251ec6 in sasview for src/sas/sasgui/guiframe/gui_style.py
- Timestamp:
- Oct 11, 2018 12:20:56 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
- Children:
- 98b9f32
- Parents:
- 67ed543
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/gui_style.py
ra1b8fee r5251ec6 58 58 DRAG_ID_PATH = os.path.join(PATH, 'drag_hand.png') 59 59 RESET_ID_PATH = os.path.join(PATH, 'reset.png') 60 PREVIEW_ID_PATH = os.path.join(PATH, 'report.png') 60 REPORT_ID_PATH = os.path.join(PATH, 'report.png') 61 PREVIEW_ID_PATH = os.path.join(PATH, 'preview.png') 61 62 PRINT_ID_PATH = os.path.join(PATH, 'printer.png') 62 63 HIDE_ID_PATH = os.path.join(PATH, 'hide.png') 63 64 64 65 SAVE_ICON = wx.Image(os.path.join(PATH, 'save.png')) 66 UNDO_ICON = wx.Image(os.path.join(PATH, 'undo.png')) 67 REDO_ICON = wx.Image(os.path.join(PATH, 'redo.png')) 68 COPY_ICON = wx.Image(os.path.join(PATH, 'copy.png')) 69 PASTE_ICON = wx.Image(os.path.join(PATH, 'paste.png')) 70 BOOKMARK_ICON = wx.Image(os.path.join(PATH, 'bookmark.png')) 71 ZOOM_IN_ICON = wx.Image(os.path.join(PATH, 'zoom_in.png')) 72 ZOOM_OUT_ICON = wx.Image(os.path.join(PATH, 'zoom_out.png')) 73 ZOOM_ICON = wx.Image(os.path.join(PATH, 'search_pan.png')) 74 DRAG_ICON = wx.Image(os.path.join(PATH, 'drag_hand.png')) 75 RESET_ICON = wx.Image(os.path.join(PATH, 'reset.png')) 76 REPORT_ICON = wx.Image(os.path.join(PATH, 'report.png')) 77 PREVIEW_ICON = wx.Image(os.path.join(PATH, 'preview.png')) 78 PRINT_ICON = wx.Image(os.path.join(PATH, 'printer.png')) 79 HIDE_ICON = wx.Image(os.path.join(PATH, 'hide.png')) 65 # Note: wx 4 requires that the app be defined before 66 # the images are loaded, so they can't be processed 67 # at module load time. Instead, need to load icons 68 # when the app is created. 69 @classmethod 70 def load_icons(cls): 71 cls.SAVE_ICON = wx.Image(cls.SAVE_ICON_PATH) 72 cls.UNDO_ICON = wx.Image(cls.UNDO_ICON_PATH) 73 cls.REDO_ICON = wx.Image(cls.REDO_ICON_PATH) 74 cls.COPY_ICON = wx.Image(cls.COPY_ICON_PATH) 75 cls.PASTE_ICON = wx.Image(cls.PASTE_ICON_PATH) 76 cls.BOOKMARK_ICON = wx.Image(cls.BOOKMARK_ICON_PATH) 77 cls.ZOOM_IN_ICON = wx.Image(cls.ZOOM_IN_ID_PATH) 78 cls.ZOOM_OUT_ICON = wx.Image(cls.ZOOM_OUT_ID_PATH) 79 cls.ZOOM_ICON = wx.Image(cls.ZOOM_ID_PATH) 80 cls.DRAG_ICON = wx.Image(cls.DRAG_ID_PATH) 81 cls.RESET_ICON = wx.Image(cls.RESET_ID_PATH) 82 cls.REPORT_ICON = wx.Image(cls.REPORT_ID_PATH) 83 cls.PREVIEW_ICON = wx.Image(cls.PREVIEW_ID_PATH) 84 cls.PRINT_ICON = wx.Image(cls.PRINT_ID_PATH) 85 cls.HIDE_ICON = wx.Image(cls.HIDE_ID_PATH) 80 86 81 87 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.