I made simple GUI in Glade 3 (Ubuntu 7.04) consisting of only 2
buttons. When I run
2buttonsgui.py, no GUI pops out
#!/usr/bin/env python
import pygtk
import gtk.glade
class TwoButtonsGUI:
def __init__(self):
self.window = gtk.glade.XML("/home/myusername/Desktop/
2buttons.glade", "win
On Sep 2, 7:29 pm, Wildemar Wildenburger
<[EMAIL PROTECTED]> wrote:
>
> Shouldnt there be more to that error message of yours? I would expect
> something like "NameError: name 'gtk' is not defined"?
>
> Because as it seems you haven't impored gtk (only gtk.glade). So adding
> "import gtk" at the b
On Sep 2, 9:07 pm, Wildemar Wildenburger
<[EMAIL PROTECTED]> wrote:
> Kveldulv wrote:
> > When interrupted, I get
>
> > File "gui.py", line 11, in
> > gtk.main()
>
> Ah, I see now. Thats just telling you that *you* interrupted the
> fun
Note to myself and python noobs like me:
Don't forget to set Visible to yes on main window in Glade :)
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I made simple GUI with Glade, window and toolbar with one button that
calls
dialog with stock yes or no buttons. It's loaded with:
def callDialog(self, widget):
self.wTree = gtk.glade.XML(self.gladefile, "yesorno")
self.dlg = self.wTree.get_widget("yesorno")
HI all,
can someone show me how to make simple right-click menu in PyGTK.
tia
--
http://mail.python.org/mailman/listinfo/python-list