當前位置: 首頁>>代碼示例>>Python>>正文


Python wx.PySimpleApp方法代碼示例

本文整理匯總了Python中wx.PySimpleApp方法的典型用法代碼示例。如果您正苦於以下問題:Python wx.PySimpleApp方法的具體用法?Python wx.PySimpleApp怎麽用?Python wx.PySimpleApp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在wx的用法示例。


在下文中一共展示了wx.PySimpleApp方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: on_Help2

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import PySimpleApp [as 別名]
def on_Help2(self, event):
        
        #-----------------------------------------------
        #  Event handler for the Help button.
        #  Alternate method that uses HTML_Help_Window
        #  class, defined below.
        #-----------------------------------------------
        app   = wx.PySimpleApp()
        frame = HTML_Help_Window(parent=None,
                                 title="HTML Help System",
                                 html_file=self.help_file)
        frame.Show()
        app.MainLoop()

    #   on_Help2()       
    #---------------------------------------------------------------- 
開發者ID:peckhams,項目名稱:topoflow,代碼行數:18,代碼來源:Input_Dialog_LAST.py

示例2: show_hide_aui_pane_info

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import PySimpleApp [as 別名]
def show_hide_aui_pane_info(self, name):
			if self.aui_manager.GetPane(name).IsShown():
				self.aui_manager.GetPane(name).Hide()
			else:
				self.aui_manager.GetPane(name).Show()
			self.aui_manager.Update()

	#~ class application(wx.PySimpleApp): 
開發者ID:Wyliodrin,項目名稱:pybass,代碼行數:10,代碼來源:wx_ctrl_phoenix.py

示例3: get_app_wx

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import PySimpleApp [as 別名]
def get_app_wx(*args, **kwargs):
    """Create a new wx app or return an exiting one."""
    import wx
    app = wx.GetApp()
    if app is None:
        if 'redirect' not in kwargs:
            kwargs['redirect'] = False
        app = wx.PySimpleApp(*args, **kwargs)
    return app 
開發者ID:ktraunmueller,項目名稱:Computable,代碼行數:11,代碼來源:guisupport.py

示例4: main

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import PySimpleApp [as 別名]
def main():
    os.chdir(APP_PATH)
#    app = wx.PySimpleApp() : Deprecated
    app = wx.App(False)
    controller = GoSyncController()
    controller.Center()
    controller.Show()
    app.MainLoop() 
開發者ID:hschauhan,項目名稱:gosync,代碼行數:10,代碼來源:GoSync.py

示例5: buildWindow

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import PySimpleApp [as 別名]
def buildWindow(self):
    app = wx.PySimpleApp()
    module_name = os.path.split(sys.argv[0])[-1]
    frame = wx.Frame(None, -1, module_name, size=(640, 480))

    panel = advanced_config.AdvancedConfigPanel(frame, ClientApp(self.parser))
    frame.Show()
    app.MainLoop() 
開發者ID:lrq3000,項目名稱:pyFileFixity,代碼行數:10,代碼來源:advanced_config_unittest.py

示例6: CreateApplication

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import PySimpleApp [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: getlanguageDict

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import PySimpleApp [as 別名]
def getlanguageDict():
    languageDict = {}
    getSupportedLanguageDict('Beremiz')
    if wx.VERSION >= (3, 0, 0):
        _app = wx.App()
    else:
        _app = wx.PySimpleApp()

    for lang in [x for x in dir(wx) if x.startswith("LANGUAGE")]:
        i = wx.Locale(wx.LANGUAGE_DEFAULT).GetLanguageInfo(getattr(wx, lang))
        if i:
            languageDict[i.CanonicalName] = i.Description

    return languageDict 
開發者ID:thiagoralves,項目名稱:OpenPLC_Editor,代碼行數:16,代碼來源:mki18n.py

示例8: Get_Input_Vars

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import PySimpleApp [as 別名]
def Get_Input_Vars():

    #------------------------------------------------------
    # Note:  This is for testing.  It creates two dialogs
    #        that are identical, on top of each other.
    #        Change values in the top one (the child) and
    #        then click on its Start button.  The child
    #        dialog closes.  Now click on the Help button
    #        of the remaining (parent) to print out some
    #        of the stored values.  Later on, the parent
    #        will be the TopoFlow main wizard.
    #------------------------------------------------------
    # Note:  You need to comment out the last few lines
    #        in this file before using this function.
    #------------------------------------------------------
    
    #----------------------------------
    # Open a TopoFlow input dialog as
    # the "main program window"
    #----------------------------------
    app = wx.PySimpleApp()
    frame1 = TF_Input_Dialog(xml_file="xml/snowmelt_degree_day.xml")
    frame1.Show()

    #--------------------------------------------------
    # Open a 2nd dialog that has frame1 as its parent
    # and which will store its values into its parent
    # before it is destroyed.
    #--------------------------------------------------
    frame2 = TF_Input_Dialog(parent=frame1, \
                             xml_file="xml/snowmelt_degree_day.xml")
    frame2.Show()

    #-----------------------
    # Start the event loop
    #-----------------------
    app.MainLoop()
    
#   Get_Input_Vars()
#-------------------------------------------------------------    
        
#---------------------------------------
#  Support two different usage options
#--------------------------------------- 
開發者ID:peckhams,項目名稱:topoflow,代碼行數:46,代碼來源:Input_Dialog_LAST.py


注:本文中的wx.PySimpleApp方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。