|
Thanks.....yes I've tried this. viz: self.txtUserEmail = self.appObj.get_widget("txtUserEmail") self.mailModel = gtk.ListStore(gobject.TYPE_STRING) self.txtUserEmail.set_model(self.mailModel) ...but as you can see, I've loaded the widget from a glade file first, the intent being to speed up GUI development a bit....Is it only possible to instantiate the combo box object in code if I want to do this? Maybe I should also mention that this also client/server app written using the Twisted framework and I'm retrieving a list with a remote call to perspective Broker and using a defertrap... @defertrap def getSysUser(trap,self): #... yield self.my_client.perspective.callRemote('getProfile_fromAccountId',2) profile = ""> yield profile.callRemote( 'asDict' ) usrObj = trap.result self.txtUserFname.set_text(usrObj['firstname']) self.txtUserSurname.set_text(usrObj['surname']) self.txtUsername.set_text(usrObj['username']) try: yield profile.callRemote( 'getEmails' ) emails = trap.result self.txtUserEmail.set_model(None) idx = 0 for item in emails: yield emails[idx].callRemote('get') eml=trap.result eml=str(eml) #just in case print '----------->>>>>>>>>',eml idx+=1 self.txtUserEmail.append_text(eml) which explodes thus: GtkWarning: gtk_combo_box_append_text: assertion `GTK_IS_LIST_STORE (combo_box->priv->model)' failed I doubt that these semantics would make any difference though... hmmmm I wonder where I'm screwing this up :-) Thanks. RM.. Phillip Calvin wrote: The function gtk_combo_box_prepend_text is making sure that the model of the combo box is of type ListStore. Since it's failing and the function in question only takes a string, we can assume it's an internal problem. My guess would be that the combo box was not created with gtk.combo_box_new_text() -- see the following link for details. --
O__
_/`.\
`=( '
|
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
