Python Forum
Is there a Python programming environment like VB6 [meta-GUI: GUI making GUI]
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a Python programming environment like VB6 [meta-GUI: GUI making GUI]
#19
(Sep-10-2017, 12:18 AM)JonathanEngr Wrote: From what I have gathered, I create the form in the designer, save it as a .ui file, then use PyQT to convert the file from a .ui to a .py (basically from xml to py).
You can convert it with pyuic5.exe which is placed PyQt5\Scripts folder.
From command line.
pyuic5 app.ui -o app.py
But that's not needed,can load ui file straight into code.
from PyQt5 import uic, QtWidgets
import sys
 
class Ui(QtWidgets.QDialog):
    def __init__(self):
        super().__init__()
        uic.loadUi('app.ui', self)
        self.show()
 
if __name__ == '__main__':
    app = QtWidgets.QApplication(sys.argv)
    window = Ui()
    sys.exit(app.exec_())
Quote:I can then open the .py file in whatever editor I like (notepad, pycharm, whatever) and add the code for the different elements on the form.
Correct?
Yes where you work from is up to you.
I have switch from Atom to VS code.
I am impressed bye this free editor,i have quick  review here.

Take also a look part-1 and part-2 for working in Windows.
Reply


Messages In This Thread
RE: Is there a Python programming environment like VB6 - by snippsat - Sep-10-2017, 01:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGUI] Start learning GUI Programming python sumandas89 1 3,224 Jan-18-2019, 02:11 PM
Last Post: Larz60+
Question [Tkinter] Python - help with making a lift admiralsulko 1 3,096 Apr-03-2018, 11:14 AM
Last Post: admiralsulko
  [split] New at Python programming Akash 1 2,833 Nov-10-2017, 07:30 PM
Last Post: heiner55
  New at Python programming rsmldmv 1 2,991 Nov-03-2017, 02:48 AM
Last Post: Larz60+
  [PyGUI] Opinions on Python GUI programming cdn 2 4,995 Aug-26-2017, 11:56 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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