Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Integrate Python Qt-based GUI tools into console app
Forum Updated to NodeBB v4.3 + New Features

Integrate Python Qt-based GUI tools into console app

Scheduled Pinned Locked Moved Unsolved Language Bindings
3 Posts 2 Posters 899 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bob64
    wrote on 19 Mar 2022, 12:02 last edited by
    #1

    I am working in an application environment which is primarily based on running from a Python console, but into which I would like to integrate some simple optional GUI addon tools. The console environment exposes various application specific commands, some of which fire off long-running jobs. The GUI tools I have in mind would pop up windows to do things like display a streaming output log, or display charts to indicate progress of relevant quantities. The existing command set would be extended to allow the user to show these windows.

    In principle, the GUI components I have in mind could be implemented using PySide, but the issue I foresee based on my current understanding is that any Qt GUI has to run in the main thread. Meanwhile, I think the console also has to run in the main thread, and I don't want the console to block while GUI windows are being shown.

    Just looking to see if my understanding is correct, whether anyone has done something similar, and what possible approaches might be. Obviously, I have thought of a multiprocess type of approach, and that might have to be the solution, but it brings some additional complications that I would like to see if I can avoid.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 19 Mar 2022, 20:45 last edited by
      #2

      Hi,

      Do you have something like the iPython Qt console in mind ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply 19 Mar 2022, 22:56
      1
      • S SGaist
        19 Mar 2022, 20:45

        Hi,

        Do you have something like the iPython Qt console in mind ?

        B Offline
        B Offline
        Bob64
        wrote on 19 Mar 2022, 22:56 last edited by
        #3

        @SGaist thank you. What we have at the moment is a pretty vanilla console and I had been thinking about how to extend that with some limited GUI facilities. But the ipython route isn't something I had considered and I wasn't aware of the Qt console. It would be a change of direction but certainly something to consider and investigate. Thanks again.

        1 Reply Last reply
        0

        1/3

        19 Mar 2022, 12:02

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved