--- a/controls/EnhancedStatusBar.py Tue Aug 15 15:50:30 2017 +0300
+++ b/controls/EnhancedStatusBar.py Tue Aug 15 16:01:18 2017 +0300
@@ -101,7 +101,6 @@
wx.EVT_SIZE(self, self.OnSize)
wx.CallAfter(self.OnSize, None)
-
def OnSize(self, event):
"""Handles The wx.EVT_SIZE Events For The StatusBar.
@@ -192,11 +191,9 @@
elif verticalalignment == ESB_ALIGN_BOTTOM:
widget.SetPosition((xpos, rect.height-widgetsize[1]))
-
if event is not None:
event.Skip()
-
def AddWidget(self, widget, horizontalalignment=ESB_ALIGN_CENTER_HORIZONTAL,
verticalalignment=ESB_ALIGN_CENTER_VERTICAL, pos = -1):
"""Add A Widget To The EnhancedStatusBar.
@@ -238,7 +235,6 @@
'"ESB_ALIGN_CENTER_VERTICAL", "ESB_ALIGN_TOP", "ESB_ALIGN_BOTTOM"' \
'"ESB_EXACT_FIT"'
-
try:
self.RemoveChild(self._items[pos].widget)
self._items[pos].widget.Destroy()