Thread: Ubuntu Quickly, Glade UI change by code?
hi,
playing ubuntu , have designed ui glade window.
want change text in text view using python, tutorials have seen don't tell how work uis made interface designer.
e.g.
http://www.learngtk.org/pygtk-tutori...struction.html
guys know of easy turorials how make programic runtime changes uis ubuntu quickly?
i used make application store , submit codes coke rewards program. here 1 method have in program show how change text.
it first creates dialog window shows codes have been save database(text_s) in 1 textview , codes not saved because not right format (text_e) in text view.code:def save_dialog(self, text_e, text_s): saver = savecodesdialog() #write valid codes saver buff = saver.ui.textview_s.get_buffer() buff.set_text(text_s) #write invalid codes , error message saver buff = saver.ui.textview_e.get_buffer() buff.set_text(text_e) saver.run() saver.destroy()
if want see more of context here rest of code. http://bazaar.launchpad.net/~stilesr...s/head:/pymcr/
method pymcrwindow.py
hope helps some.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Ubuntu Quickly, Glade UI change by code?
Ubuntu
Comments
Post a Comment