Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RPi 3
#8
Quote:designer create .ui files that can be converted,or as in example under dynamically load the .ui files by using the uic in PyQt5.
from PyQt5 import uic, QtWidgets
import sys
 
class Ui(QtWidgets.QDialog):
    def __init__(self):
        super(Ui, self).__init__()
        uic.loadUi('SomeUi.ui', self)
        self.show()
 
if __name__ == '__main__':
    app = QtWidgets.QApplication(sys.argv)
    window = Ui()
    sys.exit(app.exec_()) 

Quote:I dont understand what you mean here. (I'm beginner about Python. This may be a reason)
Where should i apply this code ? I tried CMD and it gave ineffability.
İmage
Now i can understand more clear. I make a project, and save on my documents .ui
But i should see form of code, so project should be converted. I want to ask how i do this for file being "pyqtdesigner.ui". Which lines should be changed?
Reply


Messages In This Thread
RPi 3 - by bescf - Mar-06-2019, 01:53 PM
RE: RPi 3 - by Larz60+ - Mar-06-2019, 08:29 PM
RE: RPi 3 - by bescf - Mar-07-2019, 02:03 PM
RE: RPi 3 - by Larz60+ - Mar-07-2019, 05:16 PM
RE: RPi 3 - by bescf - Mar-11-2019, 03:07 PM
RE: RPi 3 - by snippsat - Mar-11-2019, 03:53 PM
RE: RPi 3 - by bescf - Mar-12-2019, 08:33 AM
RE: RPi 3 - by bescf - Mar-12-2019, 12:31 PM
RE: RPi 3 - by snippsat - Mar-12-2019, 01:39 PM
RE: RPi 3 - by bescf - Mar-13-2019, 12:35 PM
RE: RPi 3 - by snippsat - Mar-14-2019, 06:48 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020