當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。