Example #1
0
 def makeNodeList(self, column, row):
     debug.mainthreadTest()
     chsr = chooser.FramedChooserListWidget(callback=self.showNodeCB,
                                            dbcallback=self.getNodeCB,
                                            autoselect=0, name="NodeList")
     self.table.attach(chsr.gtk, column[0], column[1], row[0], row[1],
                       xpadding=xpadding, xoptions=gtk.EXPAND|gtk.FILL)
     return chsr
Example #2
0
 def makeSegmentList(self, column, row):
     debug.mainthreadTest()
     chsr = chooser.FramedChooserListWidget(callback=self.showSegmentCB,
                                            dbcallback=self.getSegmentCB,
                                            autoselect=0,
                                            name="SegmentList")
     self.table.attach(chsr.gtk,
                       column[0],
                       column[1],
                       row[0],
                       row[1],
                       xpadding=xpadding,
                       xoptions=xoptions)
     return chsr
Example #3
0
 def makeObjList(self, othermodename, column, row):
     debug.mainthreadTest()
     chsr = chooser.FramedChooserListWidget(
         callback=self.singleClickCB,
         dbcallback=self.doubleClickCB,
         autoselect=0,
         name=othermodename + "List",
         cbkwargs=dict(modename=othermodename))
     self.table.attach(chsr.gtk,
                       column[0],
                       column[1],
                       row[0],
                       row[1],
                       xpadding=xpadding,
                       xoptions=xoptions)
     self.choosers[othermodename] = chsr
     return chsr