~ubuntu-branches/ubuntu/natty/pyside/natty

« back to all changes in this revision

Viewing changes to tests/QtUiTools/bug_426.py

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2011-02-18 18:01:00 UTC
  • mfrom: (1.2.3 upstream) (6.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110218180100-vaczjij7g08fzfme
Tags: 1.0.0~rc1-1
* New 1.0.0~rc1 upstream release
  - Bump the B-D chain versions:
    + apiextractor to 0.10.0-2~
    + generatorrunner to 0.6.6
    + shiboken to 1.0.0~rc1
* Update patches to ~rc1.
* debian/watch: update to handle Release Candidates too.
* Bump XS-Python-Version to >= 2.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import sys
 
2
import os
 
3
from PySide import QtCore, QtGui
 
4
from PySide.QtUiTools import QUiLoader
 
5
 
 
6
class Window(object):
 
7
    def __init__(self):
 
8
        loader = QUiLoader()
 
9
        filePath = os.path.join(os.path.dirname(__file__), 'bug_426.ui')
 
10
        self.widget = loader.load(filePath)
 
11
        self.group = QtGui.QActionGroup(self.widget)
 
12
        self.widget.show()
 
13
        QtCore.QTimer.singleShot(0, self.widget.close)
 
14
 
 
15
if __name__ == "__main__":
 
16
    app = QtGui.QApplication(sys.argv)
 
17
    win = Window()
 
18
    sys.exit(app.exec_())