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


Python wx.TAB_TRAVERSAL属性代码示例

本文整理汇总了Python中wx.TAB_TRAVERSAL属性的典型用法代码示例。如果您正苦于以下问题:Python wx.TAB_TRAVERSAL属性的具体用法?Python wx.TAB_TRAVERSAL怎么用?Python wx.TAB_TRAVERSAL使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在wx的用法示例。


在下文中一共展示了wx.TAB_TRAVERSAL属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__(self, *args, **kwds):
        # begin wxGlade: MyPanel.__init__
        kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)

        sizer_1 = wx.BoxSizer(wx.VERTICAL)

        sizer_1.Add((0, 0), 0, 0, 0)

        self.SetSizer(sizer_1)
        sizer_1.Fit(self)

        self.Layout()
        # end wxGlade

# end of class MyPanel 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:18,代码来源:BasesEtc_Phoenix.py

示例2: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__(self, *args, **kwds):
        # begin wxGlade: MyPanel.__init__
        kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
        
        sizer_1.Add((0, 0), 0, 0, 0)
        
        self.SetSizer(sizer_1)
        sizer_1.Fit(self)
        
        self.Layout()
        # end wxGlade

# end of class MyPanel 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:18,代码来源:BasesEtc.py

示例3: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__(self, *args, **kwds):
        # begin wxGlade: DebugPanel.__init__
        kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        self.SetFont(wx.Font(12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, 0, ""))

        sizer_2 = wx.StaticBoxSizer(wx.StaticBox(self, wx.ID_ANY, "sizer_2"), wx.VERTICAL)

        sizer_2.Add((0, 0), 0, 0, 0)

        self.SetSizer(sizer_2)

        self.Layout()
        # end wxGlade

# end of class DebugPanel 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:18,代码来源:PanelClass.py

示例4: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__(self, *args, **kwds):
        # begin wxGlade: MyPanel.__init__
        kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        self.SetSize((400, 300))

        sizer_1 = wx.BoxSizer(wx.VERTICAL)

        sizer_1.Add((0, 0), 0, 0, 0)

        self.SetSizer(sizer_1)

        self.Layout()
        # end wxGlade

# end of class MyPanel 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:18,代码来源:BasesEtc_w_sizers_Phoenix.py

示例5: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__(self, *args, **kwds):
        # begin wxGlade: FrameMain.__init__
        kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.SetSize((985, 852))
        self.SetTitle(_("Frame"))
        _icon = wx.NullIcon
        _icon.CopyFromBitmap(wx.ICON(icon))
        self.SetIcon(_icon)

        sizer_top = wx.BoxSizer(wx.HORIZONTAL)

        self.panel_top = wx.Panel(self, wx.ID_ANY, style=wx.BORDER_STATIC | wx.TAB_TRAVERSAL)
        sizer_top.Add(self.panel_top, 1, wx.EXPAND, 0)

        self.SetSizer(sizer_top)

        self.Layout()
        # end wxGlade

# end of class FrameMain 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:23,代码来源:Issue_371.py

示例6: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__(self, *args, **kwds):
        # begin wxGlade: wxgMeasurementsByDayPnl.__init__
        kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)

        __szr_main = wx.BoxSizer(wx.HORIZONTAL)

        self._LCTRL_days = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
        self._LCTRL_days.SetMinSize((100, 100))
        __szr_main.Add(self._LCTRL_days, 1, wx.EXPAND | wx.RIGHT, 5)

        self._LCTRL_days_copy = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
        self._LCTRL_days_copy.SetMinSize((100, 100))
        __szr_main.Add(self._LCTRL_days_copy, 1, wx.EXPAND | wx.RIGHT, 5)

        self.SetSizer(__szr_main)
        __szr_main.Fit(self)

        self.Layout()

        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_day_selected, self._LCTRL_days)
        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_day_selected, self._LCTRL_days_copy)
        # end wxGlade 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:25,代码来源:toplevels_no_size_Phoenix.py

示例7: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__(self, *args, **kwds):
        # begin wxGlade: wxgMeasurementsByDayPnl.__init__
        kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)

        __szr_main = wx.BoxSizer(wx.HORIZONTAL)

        self.text_ctrl_1 = wx.TextCtrl(self, wx.ID_ANY, "")
        __szr_main.Add(self.text_ctrl_1, 0, 0, 0)

        self.text_ctrl_2 = wx.TextCtrl(self, wx.ID_ANY, "")
        __szr_main.Add(self.text_ctrl_2, 0, 0, 0)

        self.SetSizer(__szr_main)
        __szr_main.Fit(self)

        self.Layout()
        # end wxGlade

# end of class wxgMeasurementsByDayPnl 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:22,代码来源:toplevels_no_size_Classic.py

示例8: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"Encrypted Files", pos = wx.DefaultPosition, size = wx.Size( 600,400 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )

		self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )

		BodySizer = wx.BoxSizer( wx.VERTICAL )

		self.m_panel4 = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
		TextCtrlSizer = wx.BoxSizer( wx.VERTICAL )

		self.EncryptedFilesTextCtrl = wx.TextCtrl( self.m_panel4, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_DONTWRAP|wx.TE_MULTILINE|wx.TE_READONLY )
		TextCtrlSizer.Add( self.EncryptedFilesTextCtrl, 1, wx.ALL|wx.EXPAND, 5 )


		self.m_panel4.SetSizer( TextCtrlSizer )
		self.m_panel4.Layout()
		TextCtrlSizer.Fit( self.m_panel4 )
		BodySizer.Add( self.m_panel4, 1, wx.EXPAND |wx.ALL, 5 )


		self.SetSizer( BodySizer )
		self.Layout()

		self.Centre( wx.BOTH ) 
开发者ID:sithis993,项目名称:Crypter,代码行数:26,代码来源:GuiAbsBase.py

示例9: _create_NetworkEditor

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def _create_NetworkEditor(self, prnt):
        self.NetworkEditor = wx.Panel(
            id=-1, parent=prnt, pos=wx.Point(0, 0),
            size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL)

        NetworkEditorTemplate._init_ctrls(self, self.NetworkEditor)

        main_sizer = wx.FlexGridSizer(cols=1, hgap=0, rows=1, vgap=0)
        main_sizer.AddGrowableCol(0)
        main_sizer.AddGrowableRow(0)

        main_sizer.AddWindow(self.NetworkNodes, 0, border=5, flag=wx.GROW | wx.ALL)

        self.NetworkEditor.SetSizer(main_sizer)

        return self.NetworkEditor 
开发者ID:thiagoralves,项目名称:OpenPLC_Editor,代码行数:18,代码来源:NetworkEditor.py

示例10: _create_EthercatNodeEditor

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def _create_EthercatNodeEditor(self, prnt):
        self.EthercatNodeEditor = wx.Panel(prnt, style=wx.TAB_TRAVERSAL)

        main_sizer = wx.FlexGridSizer(cols=1, hgap=0, rows=2, vgap=5)
        main_sizer.AddGrowableCol(0)
        main_sizer.AddGrowableRow(1)

        variables_label = wx.StaticText(self.EthercatNodeEditor,
                                        label=_('Variable entries:'))
        main_sizer.AddWindow(variables_label, border=10, flag=wx.TOP | wx.LEFT | wx.RIGHT)

        self.NodeVariables = NodeVariablesSizer(self.EthercatNodeEditor, self.Controler)
        main_sizer.AddSizer(self.NodeVariables, border=10,
                            flag=wx.GROW | wx.BOTTOM | wx.LEFT | wx.RIGHT)

        self.EthercatNodeEditor.SetSizer(main_sizer)

        return self.EthercatNodeEditor 
开发者ID:thiagoralves,项目名称:OpenPLC_Editor,代码行数:20,代码来源:ConfigEditor.py

示例11: _create_ModuleLibraryEditor

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def _create_ModuleLibraryEditor(self, prnt):
        self.ModuleLibraryEditor = wx.ScrolledWindow(prnt,
                                                     style=wx.TAB_TRAVERSAL | wx.HSCROLL | wx.VSCROLL)
        self.ModuleLibraryEditor.Bind(wx.EVT_SIZE, self.OnResize)

        self.ModuleLibrarySizer = LibraryEditorSizer(
            self.ModuleLibraryEditor,
            self.Controler.GetModulesLibraryInstance(),
            [
                ("ImportButton", "ImportESI", _("Import ESI file"), None),
                ("AddButton", "ImportDatabase", _("Add file from ESI files database"), self.OnAddButton),
                ("DeleteButton", "remove_element", _("Remove file from library"), None)
            ])
        self.ModuleLibrarySizer.SetControlMinSize(wx.Size(0, 200))
        self.ModuleLibraryEditor.SetSizer(self.ModuleLibrarySizer)

        return self.ModuleLibraryEditor 
开发者ID:thiagoralves,项目名称:OpenPLC_Editor,代码行数:19,代码来源:ConfigEditor.py

示例12: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__( self, parent ):
        # Settings
        wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = "Pigrow Data Display", pos = wx.DefaultPosition, style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
        self.Bind(wx.EVT_SIZE, self.resize_window)
        MainApp.display_panel = display_pnl(self)

        # Sizers
        main_sizer = wx.BoxSizer(wx.HORIZONTAL)
        main_sizer.Add(MainApp.display_panel, 0, wx.EXPAND)
        MainApp.window_sizer = wx.BoxSizer(wx.VERTICAL)
        MainApp.window_sizer.Add(main_sizer, 0, wx.EXPAND)
        #MainApp.window_sizer.Fit(self)
        self.SetSizer(MainApp.window_sizer)
        MainApp.window_self = self
        self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
        self.Layout()
        self.Centre( wx.BOTH ) 
开发者ID:Pragmatismo,项目名称:Pigrow,代码行数:19,代码来源:local_display.py

示例13: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__(self, parent, id=wx.ID_ANY, pos=None, size=None, style=wx.TAB_TRAVERSAL):
        wx.Panel.__init__(self, parent, id=id, pos=pos, size=size, style=style)
        self.point = pos
        self.size = size 
开发者ID:johnehunt,项目名称:advancedpython3,代码行数:6,代码来源:PyDraw.py

示例14: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__(self, *args, **kwds):
        # begin wxGlade: webcamPreviewDialog.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.THICK_FRAME
        wx.Dialog.__init__(self, *args, **kwds)
        self.panel_1 = wx.ScrolledWindow(self, wx.ID_ANY, style=wx.TAB_TRAVERSAL)
        self.previewbitmap = wx.StaticBitmap(self.panel_1, wx.ID_ANY, wx.NullBitmap)
        self.previewokbutton = wx.Button(self, wx.ID_OK, "")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade 
开发者ID:collingreen,项目名称:chronolapse,代码行数:13,代码来源:chronolapsegui.py

示例15: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import TAB_TRAVERSAL [as 别名]
def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"POS and Accounting", pos = wx.DefaultPosition, size = wx.Size( 676,460 ), style = wx.DEFAULT_FRAME_STYLE|wx.MAXIMIZE|wx.TAB_TRAVERSAL )
		
		self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
		
		bSizer1 = wx.BoxSizer( wx.VERTICAL )
		
		self.panel = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
		
		self.mainSizer = wx.BoxSizer( wx.VERTICAL )
		
		self.userName = wx.TextCtrl (self.panel, value="admin")
		self.mainSizer.Add( self.userName, 0, wx.ALIGN_CENTRE|wx.ALL, 5 )
		
		self.passwd = wx.TextCtrl (self.panel, value="admin")
		self.mainSizer.Add( self.passwd, 0, wx.ALIGN_CENTRE|wx.ALL, 5 )
		
		self.lgnButton = wx.Button(self.panel, label="Login")
		self.mainSizer.Add( self.lgnButton, 0, wx.ALIGN_CENTRE|wx.ALL, 5 )
		
		self.panel.SetSizer( self.mainSizer )
		
		bSizer1.Add( self.panel, 1, wx.EXPAND |wx.ALL, 5 )
		
		self.SetSizer( bSizer1 )
		self.Layout()
		
		self.Centre( wx.BOTH )
		
		self.lgnButton.Bind(wx.EVT_BUTTON, self.attemptLogin) 
开发者ID:104H,项目名称:HH---POS-Accounting-and-ERP-Software,代码行数:32,代码来源:loginScreen.py


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