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
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
> function/method/whateverthatis.
>
> > When GUI coded manually
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
function/method/whateverthatis.
> When GUI coded manually, all works.
>
Hence: Something in your (generated) code or XML file is corrupt
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
Kveldulv wrote:
> 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/myu
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