XSLTools

Change of examples/PyQt/QtConfiguratorApp.py

348:575da53745f9
examples/PyQt/QtConfiguratorApp.py
     1.1 --- a/examples/PyQt/QtConfiguratorApp.py	Tue Oct 25 14:54:06 2005 +0000
     1.2 +++ b/examples/PyQt/QtConfiguratorApp.py	Tue Oct 25 15:52:43 2005 +0000
     1.3 @@ -1,14 +1,17 @@
     1.4  #!/usr/bin/env python
     1.5  
     1.6 -from qt import QApplication
     1.7 +from qt import QApplication, QMainWindow, QScrollView
     1.8  import QtConfigurator
     1.9  import sys
    1.10  
    1.11  if __name__ == "__main__":
    1.12      app = QApplication(sys.argv)
    1.13 -    configurator = QtConfigurator.Configurator()
    1.14 -    configurator.show()
    1.15 -    app.setMainWidget(configurator)
    1.16 +    window = QScrollView()
    1.17 +    configurator = QtConfigurator.Configurator(window)
    1.18 +    window.addChild(configurator)
    1.19 +    window.setMinimumSize(configurator.size())
    1.20 +    window.show()
    1.21 +    app.setMainWidget(window)
    1.22      app.exec_loop()
    1.23  
    1.24  # vim: tabstop=4 expandtab shiftwidth=4