Sometimes it's your own problem that is hardest to solve, as you're
too familiar with the code. :) Congratulations on making sense of
pyGTK, the documentation isn't overly helpful... ...I'm used to the
wxPython docs and still got confused with the pyGTK ones.
Regards,
Liam Clarke
On 5/14/06, John CORRY [EMAIL PROTECTED] wrote:
Hi,
I have managed to find the solution to my problem.
I have defined iter as
Iter = model.get_iter(combo3)
The code now works. I will show it below for completeness:
combo3 = self.wTree.get_widget(treeview1)
model=gtk.TreeStore(gobject.TYPE_STRING,gobject.TYPE_STRING,gobject.TYPE_STRING,gobject.TYPE_STRING,gobject.TYPE_STRING,gobject.TYPE_STRING,gobject.TYPE_STRING,gobject.TYPE_STRING)
self.hostsmodel = model
combo3.set_model(model)
combo3.connect(row_activated, self.callback53, combo3,model)
def callback53(self,data,combo3,data2,data3,model):
lookup = []
iter = model.get_iter(combo3)
counter = 0
while counter 8:
result = model.get_value(iter,counter)
lookup.append(result)
counter = counter + 1
print lookup
Technically this is the first solution that I have been able to post on the
mailing list. Does this mean I am improving? Or does it not count as I
have solved my own problem?
Regards,
John.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor