Coder Social home page Coder Social logo

Comments (5)

aroberge avatar aroberge commented on August 28, 2024

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:

  1. addition of a new flag (QtCore.Qt.WindowStaysOnTopHint)
  2. 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.

aroberge avatar aroberge commented on August 28, 2024

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.

jeremygray avatar jeremygray commented on August 28, 2024

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.

aroberge avatar aroberge commented on August 28, 2024

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.

jeremygray avatar jeremygray commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.