I have a small client daemon program that has no frames or windows of
any kind, all it does is popup a wxFileDialog when a file is received. I
can't seem to make the dialog come to the front though, any suggestions?
Here's what I've tried:
myapp = wxPySimpleApp()
dlg = wxFileDialog(None, 'Save your PDF file',
default_path, 'printout.pdf',
style=wxSAVE|wxSTAY_ON_TOP|wxDIALOG_NO_PARENT)
dlg.Show(True)
dlg.Hide()
dlg.Show(True)
dlg.Iconize(False)
res = dlg.ShowModal()
All the Show/Hide/Iconize stuff is the result of my futile attempt to
bring the window to the front. Any ideas?
Thanks,
Mark
hello,
I have a small client daemon program that has no frames or windows of
any kind, all it does is popup a wxFileDialog when a file is received. I
can't seem to make the dialog come to the front though, any suggestions?
Here's what I've tried:
myapp = wxPySimpleApp()
dlg = wxFileDialog(None, 'Save your PDF file',
default_path, 'printout.pdf',
style=wxSAVE|wxSTAY_ON_TOP|wxDIALOG_NO_PARENT)
dlg.Show(True)
dlg.Hide()
dlg.Show(True)
dlg.Iconize(False)
res = dlg.ShowModal()
All the Show/Hide/Iconize stuff is the result of my futile attempt to
bring the window to the front. Any ideas?
did you tried myapp.SetTopWindow(dlg) ?
···
--
David <izi@club-internet.fr>
Thought I would send the solution to this problem for future reference.
I had to create a wxFrame and use it as my dialog's parent. I just left
out the frame.Show() call and my app is effectively frameless.
-Mark
···
On Sat, 2003-08-09 at 12:50, Roach, Mark R. wrote:
On Sat, 2003-08-09 at 06:37, David JL wrote:
[...]
> did you tried myapp.SetTopWindow(dlg) ?