Author Topic: [Seeking Advice] GUI class for python  (Read 1098 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
That seems to do EXACTLY what i had in mind .. thanks speedy

Offline speedy

  • Hero Member
  • *****
  • Posts: 1160
    • View Profile
  • BitShares: speedy
PyQt4 is a great choice for cross platform dev. (I chose version 4 over 5 for now).

One thing I loved about it was that I could rapidly design a GUI using QtCreator/QtDesigner, which generated an XML file mainwindow.ui for example. Then use a handy tool to generate a python module from that XML:
Code: [Select]
pyuic4 mainwindow.ui -o mainwindow.pyWhich is then easily imported with:
Code: [Select]
from mainwindow import Ui_MainWindow
And here is how you run it:
Code: [Select]
app = QApplication(sys.argv)
window = QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(window)
window.show()
sys.exit(app.exec_())

One thing about PyQt is that your app will look bog standard because it uses the platform's native widgets. But thats probably fine, and its a great way to get something up & running fast.

Great screenshot of the designer here: https://en.wikipedia.org/wiki/Qt_Creator
QtCreator really is awesome, and its even got CMake integration which is great for building BitShares core as well.

Im not an expert, but let me know if you have any questions!
« Last Edit: May 09, 2015, 09:35:29 pm by speedy »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Hey there,

I am seeking advice from the community regarding a GUI for my coldstorage solution.
Currently, I already do have working python code for transaction construction and offline signing (see my github link left)
and I wanted to start reading into GUI programming for python.

I am search for
a) someone how can assist me with GUI coding in python, or
b) some advice as to which GUI class/technology is a good (cross platform) choise
c) someone how may help with UX design for a GUI ..

any input is welcome.

Also, not expect this thing to be up and running in a week or so. I have a full-time job to attend :) but I'd like to learn more ..