|
From: Christian S. <chr...@su...> - 2007-03-20 20:09:35
|
Ah! I see. Thanks a lot. br. Chr. Tirsdag den 20. Marts 2007 skrev Will Duquette: > I'm a Tile newbie myself, but I suspect you need to set the dialog's > "-parent" option explicitly to "". Otherwise, it thinks it's transient > with respect to ".", which isn't visible, and that might prevent it from > displaying. For what it's worth. > > Will Duquette > > On Mar 19, 2007, at 2:08 PM, Christian Surlykke wrote: > > Hi > > > > I'm sorry if this is too newbeish. > > > > If I call 'withdraw' on the root window, I cannot make a > > ttk::dialog show on > > the screen. This little script shows my problem: > > > > <snippet> > > package require tile > > wm title . "Root window" > > toplevel .tl > > ttk::dialog .dlg -type okcancel > > wm withdraw . > > </snippet> > > > > With this, the dialog doesn't show. > > > > If I comment out the line "wm withdraw .", then the dialog shows > > ok, but then > > I have the root window on screen. > > > > How can I withdraw the root and show a ttk::dialog? > > > > -- Context: > > > > I'm trying to write an app, which is to sit as a tray-icon in the > > system tray > > and there should be no root window on the screen. When the icon is > > clicked a > > pop-up menu appears, and some of the entries in that menu should > > launch a > > ttk::dialog. > > I use tktray1.1 (http://wiki.tcl.tk/5972) which is a toplevel > > widget, but as > > the snippet above demonstrates, my problem seems not to be related to > > tktray. > > > > I'm running tcl8.5a5, tk8.5a5 and tile-0.7.8. It's compiled from > > sources on > > debian unstable, and I run the app in KDE 3.5.6 > > > > > > -- Disclaimer: > > > > I use Tk and Tile from Ruby, and my tcl-skills are in the category > > just below > > pathetic. Therefore this mail may be nonsense, in which case I > > appologize. > > > > br. Christian Surlykke > > > > ---------------------------------------------------------------------- > > --- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php? > > page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Tktable-tile-dev mailing list > > Tkt...@li... > > https://lists.sourceforge.net/lists/listinfo/tktable-tile-dev |