On 2010-11-19 Matti Airas wrote:
"""
We now have (in the yet-unreleased Git head version) version
strings as such:
PySide version: PySide.__version__ and PySide.__version_info__
Qt version: PySide.QtCore.__version__ and
PySide.QtCore.__version_info__
"""
This version information is appreciated. However, it would be
even more useful if it displayed the minor version information,
perhaps "b1" for beta1 and "b2" for beta 2 so that it would be
possible to see what version one is operating.
As the little snipped of program below will show, currently for
both b1 and b2 the above strings display the following:
PySide.__version__ shows string "1.0.0" and
PySide.__version_info__ shows string "(1,0,0)"
The snipped of program follows:
**************
#!/usr/bin/env python
# version.py display pyside version
import sys
import PySide
from PySide.QtGui import QApplication, QMessageBox
class Box(QMessageBox):
def __init__(self, parent=None):
super(Box, self).__init__(parent)
self.about(self, "About PySide",
''' <p>PySide Version = %s
<p>PySide Version Information = %s ''' %
(PySide.__version__, PySide.__version_info__) )
if __name__ == '__main__':
app = QApplication(sys.argv)
frame = Box()
frame.show()
app.exec_()
**************
OldAl.
--
Algis
http://akabaila.pcug.org.au
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside