|
From: Christian S. <chr...@su...> - 2007-03-20 07:17:33
|
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 |