Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

gtklib: support options on initialize of LayoutTable

Changeset 85fc5b94f65b

Parent f84134e3900e

by Yuki KODAMA

Changes to one file · Browse files at 85fc5b94f65b Showing diff from parent f84134e3900e Diff from another changeset...

 
375
376
377
378
 
379
380
381
382
383
384
385
 
 
 
386
387
388
 
375
376
377
 
378
379
380
381
382
383
384
 
385
386
387
388
389
390
@@ -375,14 +375,16 @@
  the body will be aligned left with expanded padding.   """   - def __init__(self): + def __init__(self, **kargs):   gtk.VBox.__init__(self)     self.table = gtk.Table(1, 2)   self.pack_start(self.table)   self.headers = []   - self.set_default_paddings(-1, -1) + pads = {'xpad': -1, 'ypad': -1} + pads.update(kargs) + self.set_default_paddings(**pads)     def set_default_paddings(self, xpad=None, ypad=None):   """