/offlineimap/head: changeset 318
More visual tweaking. The Button doesn't seem to be working well, so I'm going to try a MenuButton.
This commit is contained in:
parent
6a0bbe2529
commit
b16f14e65a
@ -329,12 +329,14 @@ class LEDAccountFrame:
|
|||||||
self.accountname = accountname
|
self.accountname = accountname
|
||||||
self.fontfamily = fontfamily
|
self.fontfamily = fontfamily
|
||||||
self.fontsize = fontsize
|
self.fontsize = fontsize
|
||||||
self.frame = Frame(self.top)
|
self.frame = Frame(self.top, background = 'black')
|
||||||
self.frame.pack(side = BOTTOM, expand = 0, fill = X)
|
self.frame.pack(side = BOTTOM, expand = 0, fill = X)
|
||||||
self._createcanvas(self.frame)
|
self._createcanvas(self.frame)
|
||||||
|
|
||||||
self.label = Label(self.frame, text = accountname)
|
self.label = Label(self.frame, text = accountname,
|
||||||
self.label.pack()
|
background = "black", foreground = "blue",
|
||||||
|
font = (self.fontfamily, self.fontsize))
|
||||||
|
self.label.pack(side = LEFT)
|
||||||
|
|
||||||
def getnewthreadframe(s):
|
def getnewthreadframe(s):
|
||||||
return LEDThreadFrame(s.canvas)
|
return LEDThreadFrame(s.canvas)
|
||||||
@ -350,8 +352,13 @@ class LEDAccountFrame:
|
|||||||
def startsleep(s, sleepsecs):
|
def startsleep(s, sleepsecs):
|
||||||
print 351
|
print 351
|
||||||
s.sleeping_abort = 0
|
s.sleeping_abort = 0
|
||||||
s.button = Button(s.frame, text = "Sync now", command = s.syncnow)
|
s.button = Button(s.frame, text = "Sync now", command = s.syncnow,
|
||||||
s.button.pack()
|
background = "black", activebackground = "black",
|
||||||
|
activeforeground = "white",
|
||||||
|
foreground = "blue",
|
||||||
|
font = (s.fontfamily, s.fontsize), bd = 0,
|
||||||
|
relief = FLAT)
|
||||||
|
s.button.pack(side = LEFT)
|
||||||
|
|
||||||
def syncnow(s):
|
def syncnow(s):
|
||||||
print 357
|
print 357
|
||||||
|
Loading…
Reference in New Issue
Block a user