当前位置: 首页>>代码示例>>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;未经允许,请勿转载。