~gdesklets-desklet-team/gdesklets/0.36

« back to all changes in this revision

Viewing changes to shell/plugins/StatusBar/__init__.py

  • Committer: Robert Pastierovic
  • Date: 2007-10-07 10:08:42 UTC
  • Revision ID: pastierovic@gmail.com-20071007100842-fdvp2vzmqgh1j87k
merged 0.3x branch and basic documentation and some other changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from shell.Plugin import Plugin
 
2
 
 
3
import gtk
 
4
 
 
5
 
 
6
class Shell_StatusBar(Plugin):
 
7
 
 
8
    def init(self):
 
9
        bar = gtk.Statusbar()
 
10
        bar.show()
 
11
        self.__widget = bar
 
12
 
 
13
        shell = self._get_plugin("UI_Shell")
 
14
        shell.set_statusbar(self.__widget)
 
15
 
 
16
        
 
17
 
 
18
    def set_status(self, text):
 
19
 
 
20
        self.__widget.push(self.__widget.get_context_id("message"), text)
 
21
 
 
22
 
 
23
def get_class(): return Shell_StatusBar