On 12/13/06, Andrea Spadaccini <[EMAIL PROTECTED]> wrote:
It shows correctly all the members of os. But if I do

        self.win = gtk.Window(gtk.WINDOW_TOPLEVEL)

It doesn't show anything.
Is it meant to work in this way?

I would recommend upgrading to the latest version from www.vim.org
(here: http://vim.sourceforge.net/scripts/script.php?script_id=1542 )

The following code works fine:
import gtk

class Foo(object):
   def __init__(self):
       self.win = gtk.Window()

Please note: if you have syntax errors above the code you are working
with the current code may not complete correctly, due to the top-down
nature of python structure.  I have tried to deal with this as
gracefully as possible, but there are cases where it still happens.

Reply via email to