User:Axiom

From KDE TechBase
Revision as of 19:34, 14 January 2007 by Axiom (talk | contribs) (trying out the syntax highlighting. nice!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Axiom's sandbox

I am just putting some stuff here right now, because you have such nice color coding in your wiki. Maybe I'll turn it into a tutorial if I figure out what I am doing.

Dynamically Loading a .ui file

I found this snippet here (french). I don't know if this is the right way to do it, but it seems to work.

loadui.py

import sys from PyQt4 import QtGui, uic

app = QtGui.QApplication(sys.argv) widget = uic.loadUi("demo.ui") widget.show()

  1. La boucle principale

app.exec_() Of course you will need to make a ui file called demo.ui for this to work.