mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-27 06:36:38 +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
a58781ed7a
commit
45f2f80050
@ -26,18 +26,6 @@ from MiRCARTCanvas import MiRCARTCanvas
|
||||
from MiRCARTColours import MiRCARTColours
|
||||
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):
|
||||
"""XXX"""
|
||||
panelSkin = panelCanvas = canvasPathName = None
|
||||
@ -331,10 +319,12 @@ class MiRCARTFrame(wx.Frame):
|
||||
self._initMenus(self.menuBar, \
|
||||
[self.MID_FILE, self.MID_EDIT, self.MID_TOOLS], self.onFrameCommand)
|
||||
self.SetMenuBar(self.menuBar)
|
||||
if not haveMiRCARTToPastebin:
|
||||
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_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_AS_PNG[0]].Enable(False)
|
||||
|
||||
self.toolBar = wx.ToolBar(self.panelSkin, -1, \
|
||||
style=wx.HORIZONTAL|wx.TB_FLAT|wx.TB_NODIVIDER)
|
||||
|
Loading…
Reference in New Issue
Block a user