force gtk modal window to keep focus
I am beginner using Python 1.52, GTK 1.2.10, and Glade .0.6.2 to
develop a gui which will kick off various scripts. After checking
some configurations I would like to pop up a window warning the user
of any problems and force them to respond to this window before
returning to the main window. I use a modal dialog window and set the
main window to be insensitive. This works fine but the way my window
manager(MWM) is setup(in the .mwmrc) is to raise a window when clicked
on. So if the dialog is up and the user clicks on the main window the
dialog becomes hidden and nothing can happen. I can change this raise
property on my machine but I don't know how a user's window manager
will be setup. Is this a common problem? Does anyone have a nice
solution? All I can think of is to try and disable events/signals for
the mainwindow or add callbacks for when the focus is lost in the
dialog window. I know my versions are out of date but it's what I
have to work with.
Re: force gtk modal window to keep focus
> I am beginner using Python 1.52, GTK 1.2.10, and Glade .0.6.2 to
> develop a gui which will kick off various scripts.
Python 1.5.2 is very old, over 4 years. You are strongly
encouraged to upgrade to a newer Python: make a large leap,
and upgrade to Python 2.3!
Sorry for not answering your question ;)
116. If the prisoner die in prison from blows or maltreatment, the
master of the prisoner shall convict the merchant before the judge. If he
was a free-born man, the son of the merchant shall be put to death; if it
was a slave, he shall pay one-third of a mina of gold, and all that the
master of the prisoner gave he shall forfeit.
-- 1780 BC, Hammurabi, Code of Law
Asperger Syndroom - een persoonlijke benadering:
Het zijn tijden om je zelf met politiek te bemoeien:
|All times are GMT. The time now is 08:03 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.