Python wx.ST_SIZEGRIP Examples
The following are 5
code examples of wx.ST_SIZEGRIP().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: objdictedit.py From CANFestivino with GNU Lesser General Public License v2.1 | 6 votes |
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)
Example #2
Source File: networkedit.py From CANFestivino with GNU Lesser General Public License v2.1 | 6 votes |
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)
Example #3
Source File: controlcontainer.py From admin4 with Apache License 2.0 | 6 votes |
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()
Example #4
Source File: EnhancedStatusBar.py From OpenPLC_Editor with GNU General Public License v3.0 | 6 votes |
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)
Example #5
Source File: DownloadManager.py From BitTorrent with GNU General Public License v3.0 | 5 votes |
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()