summaryrefslogtreecommitdiffstats
path: root/examples3/rangecontrols.py
diff options
context:
space:
mode:
authoraneejit1 <[email protected]>2022-07-28 15:46:19 +0000
committerSlávek Banko <[email protected]>2022-07-31 16:41:03 +0200
commit4978511ebb7e8d31dab64485d1ac87b6e004be81 (patch)
treea2da3161f070116baa15de7276c5c0c9ac855e8f /examples3/rangecontrols.py
parent5916692cf4c4df4f808e346c9bda1604960a0ff3 (diff)
downloadpytqt-4978511ebb7e8d31dab64485d1ac87b6e004be81.tar.gz
pytqt-4978511ebb7e8d31dab64485d1ac87b6e004be81.zip
Remove Qt V2 support and example files
Build files for pyuic2 have been removed along with the examples for version 2 of Qt and the build/configure scripts have been amended accordingly. The "examples3" directory has been renamed to just "examples". Signed-off-by: aneejit1 <[email protected]> (cherry picked from commit e602246539fd7435aaeb440fcb7f852c92c8426b)
Diffstat (limited to 'examples3/rangecontrols.py')
-rwxr-xr-xexamples3/rangecontrols.py79
1 files changed, 0 insertions, 79 deletions
diff --git a/examples3/rangecontrols.py b/examples3/rangecontrols.py
deleted file mode 100755
index 14588c8..0000000
--- a/examples3/rangecontrols.py
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/usr/bin/env python
-
-"""**************************************************************************
-** $Id: rangecontrols.py,v 1.1 2003/07/01 14:18:37 phil Exp $
-**
-** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
-**
-** This file is part of an example program for TQt. This example
-** program may be used, distributed and modified without limitation.
-**
-***************************************************************************"""
-
-import sys
-from python_tqt.qt import *
-
-INT_MAX = sys.maxsize
-
-class RangeControls( TQVBox ):
- def __init__( self, parent=None, name=None ):
- TQVBox.__init__( self, parent, name )
-
- row1 = TQHBox( self )
- cell2 = TQVBox( row1 )
- cell2.setMargin( 10 )
- cell2.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken )
-
- TQWidget( cell2 )
-
- label1 = TQLabel( TQString( "Enter a value between\n%1 and %2:" ).arg( -INT_MAX ).arg( INT_MAX ), cell2 )
- label1.setMaximumHeight( label1.sizeHint().height() )
- sb1 = TQSpinBox( -INT_MAX, INT_MAX, 1, cell2 )
- sb1.setValue( 0 )
-
- label2 = TQLabel( "Enter a zoom value:", cell2 )
- label2.setMaximumHeight( label2.sizeHint().height() )
- sb2 = TQSpinBox( 0, 1000, 10, cell2 )
- sb2.setSuffix( " %" )
- sb2.setSpecialValueText( "Automatic" )
-
- label3 = TQLabel( "Enter a price:", cell2 )
- label3.setMaximumHeight( label3.sizeHint().height() )
- sb3 = TQSpinBox( 0, INT_MAX, 1, cell2 )
- sb3.setPrefix( "$" )
- sb3.setValue( 355 )
-
- TQWidget( cell2 )
-
- row2 = TQHBox( self )
-
- cell3 = TQVBox( row2 )
- cell3.setMargin( 10 )
- cell3.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken )
- hslider = TQSlider( 0, 64, 1, 33, TQt.Horizontal, cell3 )
- lcd2 = TQLCDNumber( 2, cell3 )
- lcd2.display( 33 )
- lcd2.setSegmentStyle( TQLCDNumber.Filled )
- self.connect( hslider, SIGNAL("valueChanged( int )"), lcd2, SLOT("display( int )") )
-
- cell4 = TQHBox( row2 )
- cell4.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken )
- cell4.setMargin( 10 )
- vslider = TQSlider( 0, 64, 1, 8, TQt.Vertical, cell4 )
- lcd3 = TQLCDNumber( 3, cell4 )
- lcd3.display( 8 )
- self.connect( vslider, SIGNAL("valueChanged( int )"), lcd3, SLOT("display( int )") )
-
-def main( args ):
- a = TQApplication( args )
-
- rangecontrols = RangeControls()
- rangecontrols.resize( 500, 300 )
- rangecontrols.setCaption( "TQt Example - Range Control Widgets" );
- a.setMainWidget( rangecontrols )
- rangecontrols.show()
-
- a.exec_loop()
-
-if __name__=="__main__":
- main(sys.argv)