~ubuntu-branches/ubuntu/trusty/python-avc/trusty

« back to all changes in this revision

Viewing changes to examples/qt4_spinbox_progui.py

  • Committer: Bazaar Package Importer
  • Author(s): Fabrizio Pollastri
  • Date: 2008-06-10 12:00:00 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080610120000-kxuf9j41txfz25bi
Tags: 0.6.0-1
* New upstream
* Standards-Version bumped to 3.8.0 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from PyQt4.QtGui import *               # Qt GUI interface
34
34
import sys                              # system support
35
35
 
36
 
from avc.avcqt4 import *                # AVC for Qt4
 
36
from avc import *                       # AVC
37
37
 
38
38
 
39
39
class Example(QApplication,AVC):
63
63
    self.hbox.addWidget(self.label)
64
64
     
65
65
    # spin box
66
 
    self.spinbox = qt.QSpinBox()
 
66
    self.spinbox = QSpinBox()
67
67
    self.spinbox.setRange(0,100)
68
68
    self.spinbox.setObjectName('spin_value__spinbox')
69
69
    self.hbox.addWidget(self.spinbox)