Comments (5)
That's going to be a tough one to debug ... it just works here, when done this way - with both Python 3.4 and 2.7.9 .
Assuming it was working yesterday, other than removing the decorator, the changes that have been made as far as I remember are:
- addition of a new flag (QtCore.Qt.WindowStaysOnTopHint)
- inheriting from a custom dialog which uses self.show() and self.raise_() somewhat along the lines of what you suggested.
Perhaps you can see if changing back any of these would have the desired effect?
from easygui_qt.
Another possible option: just before app.quit(), add dialog.destroy(). It doesn't seem to do anything here (so no problems...) but perhaps it might solve yours?
from easygui_qt.
dialog.destroy() did not do the trick. Worth keeping in mind though. That kind of thing was needed with some wx-python dialogs on Mac to avoid a memory leak, not sure if its fixed now.
Starting at cd8538e ("cleaning up the code and addressing (partly?)..."), get_float()
(or get_int
) pops up two windows at once: "Enter a value" is hidden underneath, with "Choose a number" on top. Choosing a number sends away that window, but not the "Enter a value" one, which remains until python exits.
I suspect it has to do with the class VisibleInputDialog, which is new in that commit. If I comment out the .show() and .raise_() lines, I don't get the double windows (and don't get the right one being brought to the top either). This is your second suggestion above.
from easygui_qt.
I introduced VisibleInputDialog as a way to avoid repeating dialog.show() and dialog.raise_() every time and possibly add new default capabilities to all such widgets. If you find out that removing it and using a standard QInputDialog followed by explicitly calling show() and raise_(), then I'd certainly be happy to use that instead.
from easygui_qt.
Its exactly the same when moving the .show() and .raise_() inside the function (same as doing so inside the class). I'll have to read up more about this. I suspect its mac-specific behavior somehow.
from easygui_qt.
Related Issues (20)
- Save settings in local file
- issue with get_file_names(), get_save_file_name() HOT 2
- Problems remaining with unicode handling for Python 2.7 HOT 2
- python 2.7 subprocess issues (affects launcher demo) HOT 3
- tests under python 2.7 HOT 5
- Add optional argument handling to _launch_widget.py HOT 1
- Roadmap: widget to implement (and other added functionality) HOT 6
- hidden window problem HOT 5
- cannot find suitable PyQt installation HOT 2
- PyQt 5 or PySide support HOT 13
- A simple question with matplotlib plot window HOT 5
- Bug with multichoice selector
- get_date returns string instead of datetime.date HOT 4
- ModuleNotFoundError HOT 5
- Press "Cancel" on get_yes_or_no return False, not None.
- get_many_strings() return orderDict,which is not good for use
- Need buttonbox window
- easygui_qt.demos "Error importing PyQt5" HOT 3
- error message in get_file_names HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easygui_qt.