mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
MiRCARTFrame.py: remove obsolete MiRCARTTo{Pastebin,PngFile} imports.
MiRCARTFrame.py:MiRCARTFrame.__init__(): initially disable (grey out) Copy, Cut, Delete, Paste, Export to Pastebin, and Export as PNG menu items.
This commit is contained in:
parent
3c28fa0071
commit
1c5f869c40
@ -26,18 +26,6 @@ from MiRCARTCanvas import MiRCARTCanvas
|
|||||||
from MiRCARTColours import MiRCARTColours
|
from MiRCARTColours import MiRCARTColours
|
||||||
import os, wx
|
import os, wx
|
||||||
|
|
||||||
try:
|
|
||||||
from MiRCARTToPastebin import MiRCARTToPastebin
|
|
||||||
haveMiRCARTToPastebin = True
|
|
||||||
except ImportError:
|
|
||||||
haveMiRCARTToPastebin = False
|
|
||||||
|
|
||||||
try:
|
|
||||||
from MiRCARTToPngFile import MiRCARTToPngFile
|
|
||||||
haveMiRCARTToPngFile = True
|
|
||||||
except ImportError:
|
|
||||||
haveMiRCARTToPngFile = False
|
|
||||||
|
|
||||||
class MiRCARTFrame(wx.Frame):
|
class MiRCARTFrame(wx.Frame):
|
||||||
"""XXX"""
|
"""XXX"""
|
||||||
panelSkin = panelCanvas = canvasPathName = None
|
panelSkin = panelCanvas = canvasPathName = None
|
||||||
@ -331,9 +319,11 @@ class MiRCARTFrame(wx.Frame):
|
|||||||
self._initMenus(self.menuBar, \
|
self._initMenus(self.menuBar, \
|
||||||
[self.MID_FILE, self.MID_EDIT, self.MID_TOOLS], self.onFrameCommand)
|
[self.MID_FILE, self.MID_EDIT, self.MID_TOOLS], self.onFrameCommand)
|
||||||
self.SetMenuBar(self.menuBar)
|
self.SetMenuBar(self.menuBar)
|
||||||
if not haveMiRCARTToPastebin:
|
self.menuItemsById[self.CID_COPY[0]].Enable(False)
|
||||||
|
self.menuItemsById[self.CID_CUT[0]].Enable(False)
|
||||||
|
self.menuItemsById[self.CID_DELETE[0]].Enable(False)
|
||||||
|
self.menuItemsById[self.CID_PASTE[0]].Enable(False)
|
||||||
self.menuItemsById[self.CID_EXPORT_PASTEBIN[0]].Enable(False)
|
self.menuItemsById[self.CID_EXPORT_PASTEBIN[0]].Enable(False)
|
||||||
if not haveMiRCARTToPngFile:
|
|
||||||
self.menuItemsById[self.CID_EXPORT_AS_PNG[0]].Enable(False)
|
self.menuItemsById[self.CID_EXPORT_AS_PNG[0]].Enable(False)
|
||||||
|
|
||||||
self.toolBar = wx.ToolBar(self.panelSkin, -1, \
|
self.toolBar = wx.ToolBar(self.panelSkin, -1, \
|
||||||
|
Loading…
Reference in New Issue
Block a user