Python wx.InitAllImageHandlers() Examples
The following are 7
code examples of wx.InitAllImageHandlers().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: esafenet_gui.py From E-Safenet with GNU General Public License v2.0 | 5 votes |
def OnInit(self): wx.InitAllImageHandlers() frame_1 = MainFrame(None, -1, "") self.SetTopWindow(frame_1) frame_1.Show() return 1 # end of class ES_Gui
Example #2
Source File: pycalfem_utils.py From calfem-python with MIT License | 5 votes |
def eldraw2(ex, ey): """ Draw elements in 2d. Parameters: ex, ey Element coordinates plotpar (not implemented yet) """ #if not haveWx: # print("wxPython not installed.") # return #class ElDispApp(wx.App): # def OnInit(self): # wx.InitAllImageHandlers() # mainWindow = ElementView(None, -1, "") # mainWindow.ex = ex # mainWindow.ey = ey # mainWindow.showNodalValues = False # self.SetTopWindow(mainWindow) # mainWindow.Show() # return 1 # #app = ElDispApp(0) #app.MainLoop() mainWindow = ElementView(None, -1, "") mainWindow.ex = ex mainWindow.ey = ey mainWindow.showNodalValues = False mainWindow.Show() globalWindows.append(mainWindow)
Example #3
Source File: pycalfem_utils.py From calfem-python with MIT License | 5 votes |
def eliso2(ex, ey, ed, showMesh=False): """ Draw nodal values in 2d. Parameters: ex, ey Element coordinates ed Element nodal values plotpar (not implemented yet) """ #if not haveWx: # print("wxPython not installed.") # return #class ElDispApp(wx.App): # def OnInit(self): # wx.InitAllImageHandlers() # mainWindow = ElementView(None, -1, "") # mainWindow.ex = ex # mainWindow.ey = ey # mainWindow.ed = ed # mainWindow.showMesh = showMesh # mainWindow.showNodalValues = True # self.SetTopWindow(mainWindow) # mainWindow.Show() # return 1 # #app = ElDispApp(0) #app.MainLoop() mainWindow = ElementView(None, -1, "") mainWindow.ex = ex mainWindow.ey = ey mainWindow.ed = ed mainWindow.showMesh = showMesh mainWindow.showNodalValues = True mainWindow.Show() globalWindows.append(mainWindow)
Example #4
Source File: squaremap.py From pyFileFixity with MIT License | 5 votes |
def OnInit(self): """Initialise the application""" wx.InitAllImageHandlers() self.frame = frame = wx.Frame( None, ) frame.CreateStatusBar() model = model = self.get_model( sys.argv[1]) self.sq = SquareMap( frame, model=model) EVT_SQUARE_HIGHLIGHTED( self.sq, self.OnSquareSelected ) frame.Show(True) self.SetTopWindow(frame) return True
Example #5
Source File: multi.py From topoflow with MIT License | 5 votes |
def OnInit(self): wx.InitAllImageHandlers() frame = MyFrame(None, -1, "This is a wx.Frame", \ pos=(0,0), size=(640,480), \ style = wx.DEFAULT_FRAME_STYLE) self.SetTopWindow(frame) frame.Show() return 1
Example #6
Source File: Beremiz.py From OpenPLC_Editor with GNU General Public License v3.0 | 5 votes |
def CreateApplication(self): BeremizAppType = wx.App if wx.VERSION >= (3, 0, 0) else wx.PySimpleApp class BeremizApp(BeremizAppType): def OnInit(_self): # pylint: disable=no-self-argument self.ShowSplashScreen() return True self.app = BeremizApp(redirect=self.debug) self.app.SetAppName('beremiz') if wx.VERSION < (3, 0, 0): wx.InitAllImageHandlers()
Example #7
Source File: PLCOpenEditor.py From OpenPLC_Editor with GNU General Public License v3.0 | 5 votes |
def OnInit(self): self.SetAppName('plcopeneditor') self.ParseCommandLine() InstallLocalRessources(beremiz_dir) if wx.VERSION < (3, 0, 0): wx.InitAllImageHandlers() util.ExceptionHandler.AddExceptHook(version.app_version) self.frame = PLCOpenEditor(None, fileOpen=self.fileOpen) return True