in reply to Re: need advice on my Tk ftp client
in thread need advice on my Tk ftp client

I did actually, I should have mentioned that. DirSelect is a top level window. it cant be packed onto another widget, as far as i know. But maybe I can adapt it to my needs. Considering that I'm planning on making a remote browser as well i'll probably have to roll my own in the end...
  • Comment on Re: Re: need advice on my Tk ftp client

Replies are listed 'Best First'.
(bbfu) (reparenting toplevels) Re3: need advice on my Tk ftp client
by bbfu (Curate) on Apr 27, 2002 at 02:17 UTC

    You can reparent toplevels into other toplevels or Frames using the -container and -use options to toplevels. See this thread for a little more info.

    You would almost definately end up having to patch DirSelect to accept a widget as a container, but that should be very easy (and you can send the patch back to the author :-)

    Basically, you would just create a frame or toplevel in your program, in which you set the -container option to true. Then you would have to make DirSelect's constructor accept a widget that it would pass to it's toplevel via -use. And that's it. Easy, yes? :-)

    bbfu
    Black flowers blossum
    Fearless on my breath
    Teardrop on the fire
    Fearless on my breath