controls/EnhancedStatusBar.py
branchpython3
changeset 3750 f62625418bff
parent 3303 0ffb41625592
equal deleted inserted replaced
3749:fda6c1a37662 3750:f62625418bff
    53 Latest Revision before Latest Revision: 21 September 2005, 18.29.35 GMT+2
    53 Latest Revision before Latest Revision: 21 September 2005, 18.29.35 GMT+2
    54 Latest Revision before Latest Revision before Latest Revision: 31 May 2005, 23.17 CET
    54 Latest Revision before Latest Revision before Latest Revision: 31 May 2005, 23.17 CET
    55 
    55 
    56 """
    56 """
    57 
    57 
    58 from __future__ import absolute_import
    58 
    59 from __future__ import division
    59 
    60 import wx
    60 import wx
    61 
    61 
    62 # Horizontal Alignment Constants
    62 # Horizontal Alignment Constants
    63 ESB_ALIGN_CENTER_VERTICAL = 1
    63 ESB_ALIGN_CENTER_VERTICAL = 1
    64 ESB_ALIGN_TOP = 2
    64 ESB_ALIGN_TOP = 2
   107         """Handles The wx.EVT_SIZE Events For The StatusBar.
   107         """Handles The wx.EVT_SIZE Events For The StatusBar.
   108 
   108 
   109         Actually, All The Calculations Linked To HorizontalAlignment And
   109         Actually, All The Calculations Linked To HorizontalAlignment And
   110         VerticalAlignment Are Done In This Function."""
   110         VerticalAlignment Are Done In This Function."""
   111 
   111 
   112         for pos, item in self._items.items():
   112         for pos, item in list(self._items.items()):
   113             widget, horizontalalignment, verticalalignment = item.widget, item.horizontalalignment, item.verticalalignment
   113             widget, horizontalalignment, verticalalignment = item.widget, item.horizontalalignment, item.verticalalignment
   114 
   114 
   115             rect = self.GetFieldRect(pos)
   115             rect = self.GetFieldRect(pos)
   116             widgetsize = widget.GetSize()
   116             widgetsize = widget.GetSize()
   117 
   117