当前位置: 首页>>代码示例>>Python>>正文


Python wx.InitAllImageHandlers方法代码示例

本文整理汇总了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 
开发者ID:c3c,项目名称:E-Safenet,代码行数:10,代码来源:esafenet_gui.py

示例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) 
开发者ID:CALFEM,项目名称:calfem-python,代码行数:35,代码来源:pycalfem_utils.py

示例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) 
开发者ID:CALFEM,项目名称:calfem-python,代码行数:40,代码来源:pycalfem_utils.py

示例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 
开发者ID:lrq3000,项目名称:pyFileFixity,代码行数:15,代码来源:squaremap.py

示例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 
开发者ID:peckhams,项目名称:topoflow,代码行数:10,代码来源:multi.py

示例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() 
开发者ID:thiagoralves,项目名称:OpenPLC_Editor,代码行数:15,代码来源:Beremiz.py

示例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 
开发者ID:thiagoralves,项目名称:OpenPLC_Editor,代码行数:11,代码来源:PLCOpenEditor.py


注:本文中的wx.InitAllImageHandlers方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。