File: statusbar.py

package info (click to toggle)
pythoncard 0.8.2-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,452 kB
  • sloc: python: 56,787; makefile: 56; sh: 22
file content (25 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

"""
__version__ = "$Revision: 1.13 $"
__date__ = "$Date: 2004/07/17 17:20:10 $"
"""

import wx

class StatusBar(wx.StatusBar):
    """
    A simple StatusBar with a single text field.
    """
    
    def __init__(self, parent):
        # only display the resizing grip if the window is resizable
        # the logic below is used because it appears different
        # default flags are used on different platforms
        if not (parent.GetWindowStyle() & wx.RESIZE_BORDER):
            wx.StatusBar.__init__(self, parent, wx.NewId(), 0)
        else:
            wx.StatusBar.__init__(self, parent)
        if wx.Platform == '__WXMAC__':
            self.SetSize((self.GetSizeTuple()[0], 15))

    text = property(wx.StatusBar.GetStatusText, wx.StatusBar.SetStatusText, doc="text displayed in the statusBar")