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. loading external UIs
Forum Updated to NodeBB v4.3 + New Features

loading external UIs

Scheduled Pinned Locked Moved Solved Qt for Python
2 Posts 2 Posters 588 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.
  • RubbieKelvinR Offline
    RubbieKelvinR Offline
    RubbieKelvin
    wrote on last edited by
    #1

    hello guys... how do i load a figma file into PyQt5?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alfalfa
      wrote on last edited by
      #2
      #!/usr/bin/python3
      import os
      import sys
      from PyQt5 import QtCore, QtGui, QtWidgets , uic
      
      LOCAL_DIR = os.path.dirname(os.path.realpath(__file__)) + "/"
      
      
      class Main(QtWidgets.QMainWindow):
          def __init__(self):
              super().__init__()
              self.ui = uic.loadUi(LOCAL_DIR + "main.ui", self)
              self.show()
      
      
      if __name__== '__main__':
          app = QtWidgets.QApplication([])
          gui = Main()
          sys.exit(app.exec_())
      
      1 Reply Last reply
      1

      • Login

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