本文整理汇总了Python中wx.ST_SIZEGRIP属性的典型用法代码示例。如果您正苦于以下问题:Python wx.ST_SIZEGRIP属性的具体用法?Python wx.ST_SIZEGRIP怎么用?Python wx.ST_SIZEGRIP使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类wx
的用法示例。
在下文中一共展示了wx.ST_SIZEGRIP属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _init_ctrls
# 需要导入模块: import wx [as 别名]
# 或者: from wx import ST_SIZEGRIP [as 别名]
def _init_ctrls(self, prnt):
wx.Frame.__init__(self, id=ID_OBJDICTEDIT, name='objdictedit',
parent=prnt, pos=wx.Point(149, 178), size=wx.Size(1000, 700),
style=wx.DEFAULT_FRAME_STYLE, title=_('Objdictedit'))
self._init_utils()
self.SetClientSize(wx.Size(1000, 700))
self.SetMenuBar(self.MenuBar)
self.Bind(wx.EVT_CLOSE, self.OnCloseFrame)
if not self.ModeSolo:
self.Bind(wx.EVT_MENU, self.OnSaveMenu, id=wx.ID_SAVE)
accel = wx.AcceleratorTable([wx.AcceleratorEntry(wx.ACCEL_CTRL, 83, wx.ID_SAVE)])
self.SetAcceleratorTable(accel)
self.FileOpened = wx.Notebook(id=ID_OBJDICTEDITFILEOPENED,
name='FileOpened', parent=self, pos=wx.Point(0, 0),
size=wx.Size(0, 0), style=0)
self.FileOpened.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED,
self.OnFileSelectedChanged, id=ID_OBJDICTEDITFILEOPENED)
self.HelpBar = wx.StatusBar(id=ID_OBJDICTEDITHELPBAR, name='HelpBar',
parent=self, style=wx.ST_SIZEGRIP)
self._init_coll_HelpBar_Fields(self.HelpBar)
self.SetStatusBar(self.HelpBar)
示例2: _init_ctrls
# 需要导入模块: import wx [as 别名]
# 或者: from wx import ST_SIZEGRIP [as 别名]
def _init_ctrls(self, prnt):
wx.Frame.__init__(self, id=ID_NETWORKEDIT, name='networkedit',
parent=prnt, pos=wx.Point(149, 178), size=wx.Size(1000, 700),
style=wx.DEFAULT_FRAME_STYLE, title=_('Networkedit'))
self._init_utils()
self.SetClientSize(wx.Size(1000, 700))
self.SetMenuBar(self.MenuBar)
self.Bind(wx.EVT_CLOSE, self.OnCloseFrame)
if not self.ModeSolo:
self.Bind(wx.EVT_MENU, self.OnSaveProjectMenu, id=wx.ID_SAVE)
accel = wx.AcceleratorTable([wx.AcceleratorEntry(wx.ACCEL_CTRL, 83, wx.ID_SAVE)])
self.SetAcceleratorTable(accel)
NetworkEditorTemplate._init_ctrls(self, self)
self.HelpBar = wx.StatusBar(id=ID_NETWORKEDITHELPBAR, name='HelpBar',
parent=self, style=wx.ST_SIZEGRIP)
self._init_coll_HelpBar_Fields(self.HelpBar)
self.SetStatusBar(self.HelpBar)
示例3: addStatusBar
# 需要导入模块: import wx [as 别名]
# 或者: from wx import ST_SIZEGRIP [as 别名]
def addStatusBar(self, res=None):
if self.statusbar:
return
flags=0;
if self.HasFlag(wx.RESIZE_BORDER):
flags = wx.ST_SIZEGRIP
self.statusbar = wx.StatusBar(self, -1, flags)
if res:
res.AttachUnknownControl("StatusBar", self.statusbar)
else:
sbHeight=self.statusbar.GetSize().y
dlgSize=self.GetSize()
self.SetSize( (dlgSize.x, dlgSize.y+sbHeight) )
clientSize=self.GetClientSize()
self.statusbar.SetDimensions(0, clientSize.y-sbHeight, clientSize.x, sbHeight)
self.statusbar.Show()
示例4: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import ST_SIZEGRIP [as 别名]
def __init__(self, parent, id=wx.ID_ANY, style=wx.ST_SIZEGRIP,
name="EnhancedStatusBar"):
"""Default Class Constructor.
EnhancedStatusBar.__init__(self, parent, id=wx.ID_ANY,
style=wx.ST_SIZEGRIP,
name="EnhancedStatusBar")
"""
wx.StatusBar.__init__(self, parent, id, style, name)
self._items = {}
self._curPos = 0
self._parent = parent
wx.EVT_SIZE(self, self.OnSize)
wx.CallAfter(self.OnSize, None)
示例5: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import ST_SIZEGRIP [as 别名]
def __init__(self, parent, wxid=wx.ID_ANY):
wx.StatusBar.__init__(self, parent, wxid, style=wx.ST_SIZEGRIP|wx.WS_EX_PROCESS_IDLE )
self.SetFieldsCount(2)
self.SetStatusWidths([-2, self.status_text_width+32])
## self.SetFieldsCount(3)
## self.SetStatusWidths([-2, 24, self.status_text_width+32])
## self.sizeChanged = False
self.status_label = StatusLabel()
self.current_text = ''
## self.Bind(wx.EVT_SIZE, self.OnSize)
## # idle events? why?
## self.Bind(wx.EVT_IDLE, self.OnIdle)
## self.status_light = StatusLight(self)
## self.Reposition()