Skip to main content

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.
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()
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.

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support