Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
fc7c80d6ec | |||
|
fae48b4a8d | ||
|
cf66a347b1 | ||
|
183a5c8076 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
build
|
||||
dist
|
||||
pygtk-imap-chk-v?.?
|
||||
|
1
README
1
README
@ -38,6 +38,7 @@ Available configuration parameters:
|
||||
This value will be updated by the program when it closes.
|
||||
'mailbox': String giving the name of the mailbox directory to search for
|
||||
the unread message count (if unspecified, uses "Inbox").
|
||||
You may specify subfolders such as "Inbox/Folder".
|
||||
'mouse': A hash which configures the actions for the program to take
|
||||
in response to a mouse click. The keys of this hash can be
|
||||
'left', 'middle', or 'right'. The values of the hash can take
|
||||
|
12
Window.py
12
Window.py
@ -39,18 +39,22 @@ class Window(object):
|
||||
self.conf['mouse']['middle'] = 'reconnect'
|
||||
if not 'right' in self.conf['mouse']:
|
||||
self.conf['mouse']['right'] = 'exit'
|
||||
if not 'always_on_top' in self.conf:
|
||||
self.conf['always_on_top'] = True
|
||||
if not 'sticky' in self.conf:
|
||||
self.conf['sticky'] = True
|
||||
|
||||
self.font_sz = int(1024 * self.conf['font_size'])
|
||||
self.fgcolor = ''.join(map(lambda x: '%02x' % int(0xFF * x),
|
||||
self.conf['fgcolor']))
|
||||
sticky = True
|
||||
if 'sticky' in self.conf:
|
||||
sticky = self.conf['sticky']
|
||||
|
||||
self.window = gtk.Window()
|
||||
self.window.set_title(title)
|
||||
self.window.set_decorated(False)
|
||||
if sticky:
|
||||
if self.conf['sticky']:
|
||||
self.window.stick()
|
||||
if self.conf['always_on_top']:
|
||||
self.window.set_keep_above(True)
|
||||
self.window.connect('destroy', self.destroy_event)
|
||||
|
||||
self.label = gtk.Label('-')
|
||||
|
Loading…
x
Reference in New Issue
Block a user