Thread: Glade and GTK Builder
i maybe idiot cannot seem figure out how add color containers, buttons, etc. possible glade interface using gtk.builder?
also, version of gtk+ should use when creating gui? there lots of options, 2.24 default , has 2.8.
thanks
--
chris
still looking answer above question...
however, have question. created interface glade , gtk.builder, coded python , reason cannot window display. when execute terminal hangs until hit control-c.
i know have gtk+ 2.24 , python 2.7 installed. .ui coded gtk.builder. have other buttons have not coded python yet but, did not connect signals. left them blank, don't think should problem.code:#!/usr/bin/python import sys try: import pygtk pygtk.require("2.0") except: pass try: import gtk except: print("gtk+ not availible...") sys.exit(1) class craftygui: def __init__( self ): self.builder = gtk.builder() self.builder.add_from_file("shrewds-crafty-gui.ui") dic = { "on_buttonexit_clicked" : self.quit, "on_windowmain_destroy" : self.quit, } self.builder.connect_signals( dic ) def quit(self, widget): sys.exit(0) craftygui = craftygui() gtk.main()
thanks
--
chris
edit:
@@@ omg @@@ feel idiot, main window set not visible. learned new glade/gtk...
anyways...
chris
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Glade and GTK Builder
Ubuntu
Comments
Post a Comment