Logo Search packages:      
Sourcecode: gameclock version File versions  Download package

def gtkui::GameclockUI::add_clock_widget (   self,
  widget 
)
add a new clock to the UI

Definition at line 57 of file gtkui.py.

                                      :
        """add a new clock to the UI"""
        self.clock_widget_cnt += 1
        cols = 2 # all the time
        rows = (self.clock_widget_cnt - 1)/ cols + 1
        self.clock_table.resize(rows, cols)
        l = ( self.clock_widget_cnt % cols + 1 ) % cols
        r = l + 1
        t = rows - 1
        b = rows
        self.clock_table.attach(widget, l, r, t, b)


Generated by  Doxygen 1.6.0   Back to index