Il giorno mer, 03/02/2010 alle 12.21 -0800, Mathew Yeates ha scritto: > Here is an example
And *what is the problem*?!? Your first email was not at all understandeable to me, and the second didn't help. I assume this must _certainly_ be because I'm not a native English speaker... still, many questions on this list don't even get answers, so if I was in you I would try to catch attention by _stating clearly your problem_. By the way, I also see it as a form of respect. Notice I _may_ possibly understand the problem by studying your code, but I expect that you explain it carefully, not that I must fight to get it. Pietro > import gtk > class ListDisp: > def __init__(self): > self.builder = gtk.Builder() > self.builder.add_from_file(" > drag.xml") > self.window = self.builder.get_object("window1") > self.store=gtk.ListStore('gboolean',str) > #self.store=gtk.ListStore(str) > self.view=self.builder.get_object("treeview1") > self.view.set_model(self.store) > self.tvcolumn = gtk.TreeViewColumn('File Name') > self.view.append_column(self.tvcolumn) > self.cell = gtk.CellRendererText() > self.toggle=gtk.CellRendererToggle() > self.tvcolumn.pack_start(self.toggle, True) > self.tvcolumn.pack_start(self.cell, True) > self.tvcolumn.add_attribute(self.cell, 'text', 1) > self.tvcolumn.add_attribute(self.toggle, 'active', 0) > self.view.set_reorderable(True) > self.store.append([True,"foo"]) > self.store.append([True,"goo"]) > > if __name__ == "__main__": > ld=ListDisp() > ld.window.show_all() > gtk.main() > > > > And here is the glade file > <?xml version="1.0"?> > <interface> > <requires lib="gtk+" version="2.16"/> > <!-- interface-naming-policy project-wide --> > <object class="GtkWindow" id="window1"> > <child> > <object class="GtkScrolledWindow" id="scrolledwindow1"> > <property name="visible">True</property> > <property name="can_focus">True</property> > <property name="hscrollbar_policy">automatic</property> > <property name="vscrollbar_policy">automatic</property> > <child> > <object class="GtkTreeView" id="treeview1"> > <property name="visible">True</property> > <property name="can_focus">True</property> > </object> > </child> > </object> > </child> > </object> > </interface> > > > On Tue, Feb 2, 2010 at 11:37 PM, Pietro Battiston <too...@email.it> > wrote: > Il giorno mar, 02/02/2010 alle 16.08 -0800, Yeates, Mathew C > (388D) ha > scritto: > > > I have a CellRendererToggle and CellRendererToggle packed in > a column > > and cannot reorder. However, if I don’t pack the > CellRendererToggle > > then I can’t. > > > > > > > > > > > > Any clues or example code showing this? > > > > > > > I humbly suggest that you rephrase your problem more clearly, > perhaps > providing a simple and running snippet exposing it. > > Pietro > > > _______________________________________________ > pygtk mailing list pygtk@daa.com.au > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/