/offlineimap/head: changeset 321
More fine-tunning. Looks like using the grid manager is helping out.
This commit is contained in:
parent
8eea66bc36
commit
cb9c4d1df9
@ -330,13 +330,13 @@ class LEDAccountFrame:
|
|||||||
self.fontfamily = fontfamily
|
self.fontfamily = fontfamily
|
||||||
self.fontsize = fontsize
|
self.fontsize = fontsize
|
||||||
self.frame = Frame(self.top, background = 'black')
|
self.frame = Frame(self.top, background = 'black')
|
||||||
self.frame.pack(side = BOTTOM, expand = 0, fill = X)
|
self.frame.pack(side = BOTTOM, expand = 1, fill = X)
|
||||||
self._createcanvas(self.frame)
|
self._createcanvas(self.frame)
|
||||||
|
|
||||||
self.label = Label(self.frame, text = accountname,
|
self.label = Label(self.frame, text = accountname,
|
||||||
background = "black", foreground = "blue",
|
background = "black", foreground = "blue",
|
||||||
font = (self.fontfamily, self.fontsize))
|
font = (self.fontfamily, self.fontsize))
|
||||||
self.label.pack(side = LEFT)
|
self.label.grid(sticky = E, row = 0, column = 1)
|
||||||
|
|
||||||
def getnewthreadframe(s):
|
def getnewthreadframe(s):
|
||||||
return LEDThreadFrame(s.canvas)
|
return LEDThreadFrame(s.canvas)
|
||||||
@ -344,7 +344,8 @@ class LEDAccountFrame:
|
|||||||
def _createcanvas(self, parent):
|
def _createcanvas(self, parent):
|
||||||
c = LEDFrame(parent)
|
c = LEDFrame(parent)
|
||||||
self.canvas = c
|
self.canvas = c
|
||||||
c.pack(side = LEFT, expand = 0, fill = X)
|
c.grid(sticky = E, row = 0, column = 0)
|
||||||
|
parent.grid_columnconfigure(1, weight = 1)
|
||||||
#c.pack(side = LEFT, expand = 0, fill = X)
|
#c.pack(side = LEFT, expand = 0, fill = X)
|
||||||
|
|
||||||
def startsleep(s, sleepsecs):
|
def startsleep(s, sleepsecs):
|
||||||
@ -356,7 +357,7 @@ class LEDAccountFrame:
|
|||||||
padx = 0, pady = 0,
|
padx = 0, pady = 0,
|
||||||
font = (s.fontfamily, s.fontsize), borderwidth = 0,
|
font = (s.fontfamily, s.fontsize), borderwidth = 0,
|
||||||
relief = 'solid')
|
relief = 'solid')
|
||||||
s.button.pack(side = LEFT)
|
s.button.grid(sticky = E, row = 0, column = 2)
|
||||||
|
|
||||||
def syncnow(s):
|
def syncnow(s):
|
||||||
s.sleeping_abort = 1
|
s.sleeping_abort = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user