def __init__(self, parent, rendererSlot, propertyInspectorSlot): """ For demo purposes """ AppResource.__init__(self, parent, rendererSlot, propertyInspectorSlot) # set the name of this application that appears to the resource tree self.setName("Tester") # optionaly load content informations for this application, generated by an gui-builder that wrote xrc-files # eg. wxFormBuilder, __file__ is needed to find the xrc-file #self.loadXRC('testapp.xrc', __file__) # register a menu to the main-MenuBar, using this function ensures that # this menu will be shown/hiden respective to the activate status of # the application self.mbTestMenu = self.createMainMenu('&Test') # create an item to to the test menu self.createMenuItem(self.mbTestMenu, name="Test Menu item", help="Test Menu item", function=self.menuFunction) # the application has some properties that can be altered by the # property inspector (PI), loaded and saved self.titleTextProp = self.appendProperty("Title", default='unknown', valType=str) # do some stuff after this application has created and registered to # the resourcetree self.parent.addCommandToOnIdleQueue(self.postCreate)
def __init__( self, parent, rendererSlot, propertyInspectorSlot ): AppResource.__init__( self, parent, rendererSlot, propertyInspectorSlot ) wxMatplotPanel.__init__( self, rendererSlot, style = wx.NO_FULL_REPAINT_ON_RESIZE ) self.SetColor( (255,255,255) ); self.gci = None self.axes = None self.initAxes()
def __init__(self, parent, rendererSlot, propertyInspectorSlot): AppResource.__init__(self, parent, rendererSlot, propertyInspectorSlot) wxMatplotPanel.__init__(self, rendererSlot, style=wx.NO_FULL_REPAINT_ON_RESIZE) self.SetColor((255, 255, 255)) self.gci = None self.axes = None self.initAxes()
def __init__(self, parent, rendererSlot, propertyInspectorSlot): AppResource.__init__(self, parent, rendererSlot, propertyInspectorSlot) vtk.QVTKWidget.__init__(self, parent)
def __init__(self, parent, rendererSlot, propertyInspectorSlot): AppResource.__init__(self, parent, rendererSlot, propertyInspectorSlot) wxVTKPanel.__init__(self, parent, -1)