Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. pyqt5, cmd, console
Forum Updated to NodeBB v4.3 + New Features

pyqt5, cmd, console

Scheduled Pinned Locked Moved Unsolved Qt for Python
5 Posts 6 Posters 640 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.
  • K Offline
    K Offline
    KOHAK
    wrote on last edited by
    #1

    I want to open Minecraft server through PYQT.
    The GUI is implemented, but I don't know how to open CMD in the GUI to run Java.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Either use QProcess or the Python subprocess module.

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

      1 Reply Last reply
      1
      • E Offline
        E Offline
        ELEMENTICY
        wrote on last edited by
        #3

        Hello,
        you can use module os to run cmd in python
        for example:

        import os
        os.system("echo hello")
        
        1 Reply Last reply
        1
        • G Offline
          G Offline
          GinaBishop
          wrote on last edited by GinaBishop
          #4
          This post is deleted!
          JonBJ 1 Reply Last reply
          0
          • G GinaBishop

            This post is deleted!

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #5

            @GinaBishop
            Same answers as above. Did you try @SGaist's suggestions?

            1 Reply Last reply
            0

            • Login

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