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. Someone suggested to use something in the PySide directory with other versions of python how
Forum Updated to NodeBB v4.3 + New Features

Someone suggested to use something in the PySide directory with other versions of python how

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 3 Posters 395 Views
  • 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.
  • A Offline
    A Offline
    AI_Messiah
    wrote on last edited by
    #1

    The thing is I find this Designer in C:\Users\damon\anaconda3\Lib\site-packages\PySide2 which is good but how can I put the code together. Does this have to be done in the command line. I have never done it this way;

    jsulmJ 1 Reply Last reply
    0
    • A AI_Messiah

      The thing is I find this Designer in C:\Users\damon\anaconda3\Lib\site-packages\PySide2 which is good but how can I put the code together. Does this have to be done in the command line. I have never done it this way;

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @AI_Messiah said in Someone suggested to use something in the PySide directory with other versions of python how:

      but how can I put the code together

      What code? Can you please explain what you want to do more clearly?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AI_Messiah
        wrote on last edited by
        #3

        I mean the Python code to interact with the ui file generated with the designer

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kiwikimo
          wrote on last edited by kiwikimo
          #4
          from PyQt5 import uic
          from PyQt5.QtWidgets import QApplication
          
          Form, Window = uic.LoadUIType('dialog.ui')
          
          app = QApplication()
          window = Window()
          form - Form()
          form.setupUI(window)
          window.show()
          app.exec()
          

          from Python and QT - the best parts by Michael Herrmann

          The idea of a GUI like Qt is that the application is "event driven" so you have to link your code to an event triggered by the user such as clicking a button.

          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