Help building GUI with Tix - Python

This is a discussion on Help building GUI with Tix - Python ; I am trying to build a GUI using the Tix module. What I want is a paned window with a tree in the left pane and a notebook in the right pane. I keep getting an error that I don't ...

+ Reply to Thread
Results 1 to 2 of 2

Help building GUI with Tix

  1. Default Help building GUI with Tix

    I am trying to build a GUI using the Tix module. What I want is a
    paned window with a tree in the left pane and a notebook in the right
    pane. I keep getting an error that I don't understand when adding
    these widgets to the panes:

    PythonWin 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 bit
    (Intel)] on win32.
    Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin'
    for further copyright information.
    >>> import Tix
    >>> app = Tix.Tk("Demo")
    >>> panes = Tix.PanedWindow(app)
    >>> panes.pack(fill=Tix.BOTH, expand=True)
    >>> tree = Tix.Tree(panes)
    >>> panes.add(tree)

    Traceback (most recent call last):
    File "<interactive input>", line 1, in <module>
    File "C:\Program Files\Python25\lib\lib-tk\Tix.py", line 1220, in
    add
    self.tk.call(self._w, 'add', name, *self._options(cnf, kw))
    TclError: bad window path name ".16442432..16442432"
    >>>


    What am I missing?

    TIA


  2. Default Re: Help building GUI with Tix - solution

    I figured it out after finding an example somewhere:

    >>> import Tix
    >>> app = Tix.Tk("Demo")
    >>> panes = Tix.PanedWindow(app)
    >>> left = panes.add('left')
    >>> right = panes.add('right')
    >>> tree = Tix.Tree(left)
    >>> notebook = Tix.NoteBook(right)
    >>> tree.pack()
    >>> notebook.pack()
    >>> panes.pack()
    >>> app.mainloop()



+ Reply to Thread

Similar Threads

  1. MSBuild : Building a project without building it's dependencies
    By Application Development in forum CSharp
    Replies: 4
    Last Post: 12-07-2007, 11:18 PM
  2. MSBuild : Building a project without building it's dependencies
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 12-05-2007, 12:29 AM
  3. Re: building a GUI
    By Application Development in forum Python
    Replies: 0
    Last Post: 09-23-2007, 05:57 PM
  4. Building a jar with Ant
    By Application Development in forum Java
    Replies: 3
    Last Post: 09-16-2007, 09:59 PM
  5. Building a new PC for Max
    By Application Development in forum Graphics
    Replies: 30
    Last Post: 06-10-2005, 02:20 AM