本文整理汇总了Python中wx.InitAllImageHandlers方法的典型用法代码示例。如果您正苦于以下问题:Python wx.InitAllImageHandlers方法的具体用法?Python wx.InitAllImageHandlers怎么用?Python wx.InitAllImageHandlers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wx
的用法示例。
在下文中一共展示了wx.InitAllImageHandlers方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: OnInit
# 需要导入模块: import wx [as 别名]
# 或者: from wx import InitAllImageHandlers [as 别名]
def OnInit(self):
wx.InitAllImageHandlers()
frame_1 = MainFrame(None, -1, "")
self.SetTopWindow(frame_1)
frame_1.Show()
return 1
# end of class ES_Gui
示例2: eldraw2
# 需要导入模块: import wx [as 别名]
# 或者: from wx import InitAllImageHandlers [as 别名]
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)
示例3: eliso2
# 需要导入模块: import wx [as 别名]
# 或者: from wx import InitAllImageHandlers [as 别名]
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)
示例4: OnInit
# 需要导入模块: import wx [as 别名]
# 或者: from wx import InitAllImageHandlers [as 别名]
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
示例5: OnInit
# 需要导入模块: import wx [as 别名]
# 或者: from wx import InitAllImageHandlers [as 别名]
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
示例6: CreateApplication
# 需要导入模块: import wx [as 别名]
# 或者: from wx import InitAllImageHandlers [as 别名]
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()
示例7: OnInit
# 需要导入模块: import wx [as 别名]
# 或者: from wx import InitAllImageHandlers [as 别名]
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