Compare commits

...

9 Commits

Author SHA1 Message Date
Michele Calgaro 7f8cb4a863
Additional fix similar to previous commit. 7 months ago
François Andriot 1a00e1cccd
Fix ftbfs on Fedora 34 7 months ago
Slávek Banko a1b7a93354
pyuic: Delete the current date from the generated files 11 months ago
Michele Calgaro a6011b52bf
Removed code formatting modelines. 1 year ago
Slávek Banko 929e8d56cb Properly import python_tqt module in scripts generated by pyuic 5 years ago
Slávek Banko f303e4dc2b Fix examples to properly import python_tqt module 5 years ago
Slávek Banko d6f4544562 Improve python_tqt module initialization 5 years ago
Timothy Pearson 7973f920ef Fix invalid headers in PNG files and optimize for size 5 years ago
Michele Calgaro fc37811528 Fixed FTBFS caused by wrong #define. 7 years ago
  1. 5
      configure.py
  2. 2
      doc/PyQt.html
  3. 2
      doc/PyQt.sgml
  4. 2
      doc/qtdocs.sip
  5. 2
      examples2/aclock.py
  6. 2
      examples2/addressbook.py
  7. 10
      examples2/application.py
  8. 2
      examples2/buttongroups.py
  9. 2
      examples2/dclock.py
  10. 2
      examples2/desktop.py
  11. 2
      examples2/dirview.py
  12. 2
      examples2/dragdrop.py
  13. 2
      examples2/dropsite.py
  14. 4
      examples2/gears.py
  15. 2
      examples2/menu.py
  16. BIN
      examples2/qt.png
  17. BIN
      examples2/qtlogo.png
  18. 2
      examples2/secret.py
  19. 4
      examples2/semaphore.py
  20. 2
      examples2/splitter.py
  21. 2
      examples2/table.py
  22. 2
      examples2/themes.py
  23. BIN
      examples2/tt-logo.png
  24. 2
      examples2/tut1.py
  25. 2
      examples2/tut10.py
  26. 2
      examples2/tut11.py
  27. 2
      examples2/tut12.py
  28. 2
      examples2/tut13.py
  29. 2
      examples2/tut14.py
  30. 2
      examples2/tut2.py
  31. 2
      examples2/tut3.py
  32. 2
      examples2/tut4.py
  33. 2
      examples2/tut5.py
  34. 2
      examples2/tut6.py
  35. 2
      examples2/tut7.py
  36. 2
      examples2/tut8.py
  37. 2
      examples2/tut9.py
  38. 2
      examples2/widgets.py
  39. 2
      examples3/SQL/connect.ui.h
  40. 4
      examples3/SQL/dbconnect.py
  41. 2
      examples3/SQL/frmconnect.py
  42. 2
      examples3/SQL/runform1.py
  43. 2
      examples3/SQL/runform2.py
  44. 4
      examples3/SQL/runsqlex.py
  45. 4
      examples3/SQL/sqlcustom1.py
  46. 4
      examples3/SQL/sqlsubclass5.py
  47. 4
      examples3/SQL/sqltable4.py
  48. 2
      examples3/aclock.py
  49. 2
      examples3/addressbook.py
  50. 2
      examples3/application.py
  51. 2
      examples3/biff.py
  52. 4
      examples3/bigtable.py
  53. 2
      examples3/buttongroups.py
  54. BIN
      examples3/canvas/butterfly.png
  55. 4
      examples3/canvas/canvas.py
  56. BIN
      examples3/canvas/qtlogo.png
  57. 3
      examples3/checklists.py
  58. 2
      examples3/cursor.py
  59. 2
      examples3/dclock.py
  60. 2
      examples3/desktop.py
  61. 2
      examples3/dirview.py
  62. 2
      examples3/dragdrop.py
  63. 2
      examples3/drawlines.py
  64. 2
      examples3/dropsite.py
  65. 2
      examples3/fontdisplayer.py
  66. 2
      examples3/fonts.py
  67. 4
      examples3/gears.py
  68. 2
      examples3/i18n/i18n.py
  69. 2
      examples3/i18n/mywidget.py
  70. 2
      examples3/lineedits.py
  71. 2
      examples3/listbox.py
  72. 2
      examples3/listboxcombo.py
  73. BIN
      examples3/marble.png
  74. 2
      examples3/mdi.py
  75. 2
      examples3/menu.py
  76. 2
      examples3/progress.py
  77. 2
      examples3/progressbar.py
  78. 2
      examples3/qdir.py
  79. 2
      examples3/qmag.py
  80. BIN
      examples3/qt.png
  81. BIN
      examples3/qtlogo.png
  82. 2
      examples3/rangecontrols.py
  83. 2
      examples3/richtext.py
  84. 2
      examples3/secret.py
  85. 4
      examples3/semaphore.py
  86. 4
      examples3/smalltable.py
  87. 2
      examples3/splitter.py
  88. 2
      examples3/tabdialog.py
  89. 4
      examples3/tablestatistics.py
  90. 2
      examples3/tooltip.py
  91. BIN
      examples3/tt-logo.png
  92. 2
      examples3/tut1.py
  93. 4
      examples3/tut10.py
  94. 4
      examples3/tut11.py
  95. 4
      examples3/tut12.py
  96. 4
      examples3/tut13.py
  97. 6
      examples3/tut14.py
  98. 2
      examples3/tut2.py
  99. 2
      examples3/tut3.py
  100. 4
      examples3/tut4.py
  101. 4
      examples3/tut5.py
  102. 4
      examples3/tut6.py
  103. 4
      examples3/tut7.py
  104. 4
      examples3/tut8.py
  105. 4
      examples3/tut9.py
  106. 4
      examples3/webbrowser/mainwindow.py
  107. 4
      examples3/webbrowser/webbrowser.py
  108. 2
      examples3/widgets.py
  109. 35
      module-init.py
  110. 5
      pyuic2/uic.cpp
  111. 5
      pyuic3/embed.cpp
  112. 8
      pyuic3/form.cpp
  113. 5
      pyuic3/main.cpp
  114. 2
      sip/qt/qmemarray.sip
  115. 4
      sip/qt/qpainter.sip
  116. 6
      sip/qt/qstyle.sip
  117. 2
      sip/qtxml/qtxmlmod.sip

5
configure.py

@ -1458,14 +1458,15 @@ def main(argv):
# Create the additional Makefiles.
sipconfig.inform("Creating top level Makefile...")
open('__init__.py', 'a').close()
sipconfig.ParentMakefile(
configuration=sipcfg,
subdirs=pyqt_modules + pyqt.tools(),
installs=(pyqt.module_installs(), pyqt.module_dir())
).generate()
# Install module initialization script.
create_config("__init__.py", os.path.join(src_dir, "module-init.py"), macros)
# Install the configuration module.
create_config("pyqtconfig.py", os.path.join(src_dir, "pyqtconfig.py.in"), macros)

2
doc/PyQt.html

@ -291,7 +291,7 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
>from qt import *
>from python_tqt.qt import *
# Import our custom widget.
from foo import bar</PRE

2
doc/PyQt.sgml

@ -256,7 +256,7 @@ Here's the corresponding output from <Literal>pyuic</Literal>.
</Para>
<ProgramListing>
from qt import *
from python_tqt.qt import *
# Import our custom widget.
from foo import bar

2
doc/qtdocs.sip

@ -285,7 +285,7 @@ Here's the corresponding output from <Literal>pyuic</Literal>.
</Para>
<ProgramListing>
from qt import *
from python_tqt.qt import *
# Import our custom widget.
from foo import bar

2
examples2/aclock.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
def TQMIN(x, y):
if y > x: return y

2
examples2/addressbook.py

@ -4,7 +4,7 @@
import sys, string
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

10
examples2/application.py

@ -4,7 +4,7 @@
import sys, string
from qt import *
from python_tqt.qt import *
fileopen = [
@ -104,13 +104,13 @@ class ApplicationWindow(TQMainWindow):
self.fileTools = TQToolBar(self,'file operations')
openIcon = TQPixmap(fileopen)
self.fileOpen = TQToolButton(openIcon,'Open File',TQString.null,self.load,self.fileTools,'open file')
self.fileOpen = TQToolButton(TQIconSet(openIcon),'Open File',TQString.null,self.load,self.fileTools,'open file')
saveIcon = TQPixmap(filesave)
self.fileSave = TQToolButton(saveIcon,'Save File',TQString.null,self.save,self.fileTools,'save file')
self.fileSave = TQToolButton(TQIconSet(saveIcon),'Save File',TQString.null,self.save,self.fileTools,'save file')
printIcon = TQPixmap(fileprint)
self.filePrint = TQToolButton(printIcon,'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
self.filePrint = TQToolButton(TQIconSet(printIcon),'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
TQWhatsThis.whatsThisButton(self.fileTools)

2
examples2/buttongroups.py

@ -10,7 +10,7 @@
#*****************************************************************************/
import sys
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

2
examples2/dclock.py

@ -4,7 +4,7 @@
import sys, string
from qt import *
from python_tqt.qt import *
class DigitalClock(TQLCDNumber):

2
examples2/desktop.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
seed = 0.353535353535
KINDA_RAND_MAX = 32767

2
examples2/dirview.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
class Directory(TQListViewItem):
def __init__(self, parent, name=None):

2
examples2/dragdrop.py

@ -3,7 +3,7 @@
# Ported to PyTQt by Issac Trotts on Jan 1, 2002
import sys
from qt import *
from python_tqt.qt import *
import dropsite, secret

2
examples2/dropsite.py

@ -1,7 +1,7 @@
# This is part of the dragdrop example.
from qt import *
from python_tqt.qt import *
import secret

4
examples2/gears.py

@ -3,8 +3,8 @@
import sys
import math
from qt import *
from qtgl import *
from python_tqt.qt import *
from python_tqt.qtgl import *
from OpenGL.GL import *
def gear(inner_radius,outer_radius,width,teeth,tooth_depth):

2
examples2/menu.py

@ -11,7 +11,7 @@
#*****************************************************************************/
import sys, string
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

BIN
examples2/qt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 355 B

BIN
examples2/qtlogo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

2
examples2/secret.py

@ -1,7 +1,7 @@
# This is part of the dragdrop example.
from qt import *
from python_tqt.qt import *
def canDecode(e):

4
examples2/semaphore.py

@ -7,12 +7,12 @@ import sys
# Check if thread support was enabled.
try:
from qt import TQThread
from python_tqt.qt import TQThread
except:
print "Thread support not enabled"
sys.exit(1)
from qt import *
from python_tqt.qt import *
# The semaphore instances.

2
examples2/splitter.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
class Test(TQWidget):
def __init__(self, parent=None, name='Test', f=0):

2
examples2/table.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
class Table(TQTableView):
def __init__(self, numRows, numCols, parent=None, name=''):

2
examples2/themes.py

@ -13,7 +13,7 @@ import os, sys
# include files for QT
from qt import *
from python_tqt.qt import *
class ButtonsGroups(TQVBox):

BIN
examples2/tt-logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

2
examples2/tut1.py

@ -3,7 +3,7 @@
# TQt tutorial 1.
import sys
from qt import *
from python_tqt.qt import *
a = TQApplication(sys.argv)

2
examples2/tut10.py

@ -3,7 +3,7 @@
# TQt tutorial 10.
import sys
from qt import *
from python_tqt.qt import *
class LCDRange(TQVBox):

2
examples2/tut11.py

@ -4,7 +4,7 @@
import sys
import math
from qt import *
from python_tqt.qt import *
class LCDRange(TQVBox):

2
examples2/tut12.py

@ -5,7 +5,7 @@
import sys
import math
import random
from qt import *
from python_tqt.qt import *
class LCDRange(TQVBox):

2
examples2/tut13.py

@ -5,7 +5,7 @@
import sys
import math
import random
from qt import *
from python_tqt.qt import *
class LCDRange(TQWidget):

2
examples2/tut14.py

@ -5,7 +5,7 @@
import sys
import math
import random
from qt import *
from python_tqt.qt import *
class LCDRange(TQWidget):

2
examples2/tut2.py

@ -3,7 +3,7 @@
# TQt tutorial 2.
import sys
from qt import *
from python_tqt.qt import *
a = TQApplication(sys.argv)

2
examples2/tut3.py

@ -3,7 +3,7 @@
# TQt tutorial 3.
import sys
from qt import *
from python_tqt.qt import *
a = TQApplication(sys.argv)

2
examples2/tut4.py

@ -3,7 +3,7 @@
# TQt tutorial 4.
import sys
from qt import *
from python_tqt.qt import *
class MyWidget(TQWidget):

2
examples2/tut5.py

@ -3,7 +3,7 @@
# TQt tutorial 5.
import sys
from qt import *
from python_tqt.qt import *
class MyWidget(TQVBox):

2
examples2/tut6.py

@ -3,7 +3,7 @@
# TQt tutorial 6.
import sys
from qt import *
from python_tqt.qt import *
class LCDRange(TQVBox):

2
examples2/tut7.py

@ -3,7 +3,7 @@
# TQt tutorial 7.
import sys
from qt import *
from python_tqt.qt import *
class LCDRange(TQVBox):

2
examples2/tut8.py

@ -3,7 +3,7 @@
# TQt tutorial 8.
import sys
from qt import *
from python_tqt.qt import *
class LCDRange(TQVBox):

2
examples2/tut9.py

@ -3,7 +3,7 @@
# TQt tutorial 9.
import sys
from qt import *
from python_tqt.qt import *
class LCDRange(TQVBox):

2
examples2/widgets.py

@ -2,7 +2,7 @@
import sys, string
from qt import *
from python_tqt.qt import *
#
## Constructs an analog clock widget that uses an internal TQTimer.

2
examples3/SQL/connect.ui.h

@ -9,7 +9,7 @@
void ConnectDialog::init()
{
from qtsql import TQSqlDatabase
from python_tqt.qtsql import TQSqlDatabase
#qDebug("ConnectDialog init")
self.comboDriver.clear()
self.comboDriver.insertStringList(TQSqlDatabase.drivers())

4
examples3/SQL/dbconnect.py

@ -1,8 +1,8 @@
#!/usr/bin/env python
import sys
from qt import *
from qtsql import *
from python_tqt.qt import *
from python_tqt.qtsql import *
from frmconnect import frmConnect
from dbpar import *

2
examples3/SQL/frmconnect.py

@ -6,7 +6,7 @@
# WARNING! All changes made in this file will be lost!
from qt import *
from python_tqt.qt import *
class frmConnect(TQDialog):

2
examples3/SQL/runform1.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
from form1 import Form1
from dbconnect import createConnection

2
examples3/SQL/runform2.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
from form2 import Form2
from dbconnect import createConnection

4
examples3/SQL/runsqlex.py

@ -1,8 +1,8 @@
#!/usr/bin/env python
import sys
from qt import *
from qtsql import *
from python_tqt.qt import *
from python_tqt.qtsql import *
from sqlex import SqlEx
from connect import ConnectDialog

4
examples3/SQL/sqlcustom1.py

@ -11,8 +11,8 @@
#*****************************************************************************/
import sys
from qt import *
from qtsql import *
from python_tqt.qt import *
from python_tqt.qtsql import *
from dbconnect import createConnection

4
examples3/SQL/sqlsubclass5.py

@ -11,8 +11,8 @@
#*****************************************************************************/
import sys
from qt import *
from qtsql import *
from python_tqt.qt import *
from python_tqt.qtsql import *
from dbconnect import createConnection

4
examples3/SQL/sqltable4.py

@ -11,8 +11,8 @@
#*****************************************************************************/
import sys
from qt import *
from qtsql import *
from python_tqt.qt import *
from python_tqt.qtsql import *
from dbconnect import createConnection

2
examples3/aclock.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
def TQMIN(x, y):
if y > x: return y

2
examples3/addressbook.py

@ -4,7 +4,7 @@
import sys, string
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

2
examples3/application.py

@ -4,7 +4,7 @@
import sys, string
from qt import *
from python_tqt.qt import *
fileopen = [

2
examples3/biff.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import os, sys, string
from qt import *
from python_tqt.qt import *
if TQT_VERSION < 0x030100:

4
examples3/bigtable.py

@ -12,8 +12,8 @@
import sys
import os
from qt import *
from qttable import *
from python_tqt.qt import *
from python_tqt.qttable import *
TRUE = 1
FALSE = 0

2
examples3/buttongroups.py

@ -10,7 +10,7 @@
#*****************************************************************************/
import sys
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

BIN
examples3/canvas/butterfly.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

4
examples3/canvas/canvas.py

@ -1,8 +1,8 @@
#!/usr/bin/env python
import sys
from qt import *
from qtcanvas import *
from python_tqt.qt import *
from python_tqt.qtcanvas import *
import random

BIN
examples3/canvas/qtlogo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

3
examples3/checklists.py

@ -1,10 +1,9 @@
#!/usr/bin/env python
# vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
# Copyright (C) 2002 Oleksandr Yakovlyev (yshurik) <yshurik@thekompany.com>
import sys
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

2
examples3/cursor.py

@ -10,7 +10,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
# cb_bits and cm_bits were generated by X bitmap program.

2
examples3/dclock.py

@ -4,7 +4,7 @@
import sys, string
from qt import *
from python_tqt.qt import *
class DigitalClock(TQLCDNumber):

2
examples3/desktop.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
seed = 0.353535353535
KINDA_RAND_MAX = 32767

2
examples3/dirview.py

@ -12,7 +12,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
folder_closed_xpm = [
"16 16 9 1",

2
examples3/dragdrop.py

@ -3,7 +3,7 @@
# Ported to PyTQt by Issac Trotts on Jan 1, 2002
import sys
from qt import *
from python_tqt.qt import *
import dropsite, secret

2
examples3/drawlines.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys, random
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

2
examples3/dropsite.py

@ -1,7 +1,7 @@
# This is part of the dragdrop example.
from qt import *
from python_tqt.qt import *
import secret

2
examples3/fontdisplayer.py

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
class FontRowTable( TQFrame ):
def __init__( self, parent=None, name=None ):

2
examples3/fonts.py

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
class Viewer( TQWidget ):
def __init__( self ):

4
examples3/gears.py

@ -3,8 +3,8 @@
import sys
import math
from qt import *
from qtgl import *
from python_tqt.qt import *
from python_tqt.qtgl import *
from OpenGL.GL import *
def gear(inner_radius,outer_radius,width,teeth,tooth_depth):

2
examples3/i18n/i18n.py

@ -5,7 +5,7 @@
from whrandom import randint
import sys
from qt import *
from python_tqt.qt import *
from mywidget import MyWidget

2
examples3/i18n/mywidget.py

@ -1,6 +1,6 @@
# Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
from qt import *
from python_tqt.qt import *
class MyWidget(TQMainWindow):

2
examples3/lineedits.py

@ -11,7 +11,7 @@
#*****************************************************************************/
import sys
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

2
examples3/listbox.py

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
FALSE = 0
TRUE = 1

2
examples3/listboxcombo.py

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
FALSE = 0
TRUE = 1

BIN
examples3/marble.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

2
examples3/mdi.py

@ -4,7 +4,7 @@
import sys, string
from qt import *
from python_tqt.qt import *
fileopen = [

2
examples3/menu.py

@ -11,7 +11,7 @@
#*****************************************************************************/
import sys, string
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

2
examples3/progress.py

@ -13,7 +13,7 @@
#*****************************************************************************/
import sys
from qt import *
from python_tqt.qt import *
from random import randint
class AnimatedThingy(TQLabel):

2
examples3/progressbar.py

@ -12,7 +12,7 @@
#import pdb
import sys
from qt import *
from python_tqt.qt import *
FALSE = 0
TRUE = 1

2
examples3/qdir.py

@ -4,7 +4,7 @@
import os
import pickle
from qt import *
from python_tqt.qt import *
from dirview import Directory, DirectoryView
bookmarks = [

2
examples3/qmag.py

@ -11,7 +11,7 @@
#*****************************************************************************/
import sys
from qt import *
from python_tqt.qt import *
TRUE = 1
FALSE = 0

BIN
examples3/qt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 355 B

BIN
examples3/qtlogo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

2
examples3/rangecontrols.py

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
INT_MAX = sys.maxint

2
examples3/richtext.py

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
sayings = [
"<b>Saying 1:</b><br>"

2
examples3/secret.py

@ -1,7 +1,7 @@
# This is part of the dragdrop example.
from qt import *
from python_tqt.qt import *
def canDecode(e):

4
examples3/semaphore.py

@ -7,12 +7,12 @@ import sys
# Check if thread support was enabled.
try:
from qt import TQThread
from python_tqt.qt import TQThread
except:
print "Thread support not enabled"
sys.exit(1)
from qt import *
from python_tqt.qt import *
# The semaphore instances.

4
examples3/smalltable.py

@ -12,8 +12,8 @@
import sys
import os
from qt import *
from qttable import *
from python_tqt.qt import *
from python_tqt.qttable import *
TRUE = 1
FALSE = 0

2
examples3/splitter.py

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from qt import *
from python_tqt.qt import *
class Test(TQWidget):
def __init__(self, parent=None, name='Test', f=0):

2
examples3/tabdialog.py

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
class TabDialog( TQTabDialog ):
def __init__( self, parent=None, name=None, filename=None ):

4
examples3/tablestatistics.py

@ -12,8 +12,8 @@
import sys
import os
from qt import *
from qttable import *
from python_tqt.qt import *
from python_tqt.qttable import *
TRUE = 1
FALSE = 0

2
examples3/tooltip.py

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from qt import *
from python_tqt.qt import *
from random import random
class DynamicTip( TQToolTip ):

BIN
examples3/tt-logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

2
examples3/tut1.py

@ -3,7 +3,7 @@
# TQt tutorial 1.
import sys
import qt
from python_tqt import qt
a = qt.TQApplication(sys.argv)

4
examples3/tut10.py

@ -3,7 +3,7 @@
# TQt tutorial 10.
import sys
import qt
from python_tqt import qt
class LCDRange(qt.TQVBox):
@ -101,7 +101,7 @@ class MyWidget(qt.TQWidget):
quit = qt.TQPushButton("&Quit", self, "quit")
quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
self.angle = LCDRange(self, "angle")
self.angle.setRange(5, 70)

4
examples3/tut11.py

@ -4,7 +4,7 @@
import sys
import math
import qt
from python_tqt import qt
class LCDRange(qt.TQVBox):
@ -162,7 +162,7 @@ class MyWidget(qt.TQWidget):
quit = qt.TQPushButton("&Quit", self, "quit")
quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
self.angle = LCDRange(self, "angle")
self.angle.setRange(5, 70)

4
examples3/tut12.py

@ -5,7 +5,7 @@
import sys
import math
import random
import qt
from python_tqt import qt
class LCDRange(qt.TQVBox):
@ -202,7 +202,7 @@ class MyWidget(qt.TQWidget):
quit = qt.TQPushButton("&Quit", self, "quit")
quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
self.angle = LCDRange("ANGLE", self, "angle")
self.angle.setRange(5, 70)

4
examples3/tut13.py

@ -5,7 +5,7 @@
import sys
import math
import random
import qt
from python_tqt import qt
class LCDRange(qt.TQWidget):
@ -237,7 +237,7 @@ class GameBoard(qt.TQWidget):
quit = qt.TQPushButton("&Quit", self, "quit")
quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
self.angle = LCDRange("ANGLE", self, "angle")
self.angle.setRange(5, 70)

6
examples3/tut14.py

@ -5,7 +5,7 @@
import sys
import math
import random
import qt
from python_tqt import qt
class LCDRange(qt.TQWidget):
@ -277,7 +277,7 @@ class GameBoard(qt.TQWidget):
quit = qt.TQPushButton("&Quit", self, "quit")
quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
self.angle = LCDRange("ANGLE", self, "angle")
self.angle.setRange(5, 70)
@ -316,7 +316,7 @@ class GameBoard(qt.TQWidget):
accel = qt.TQAccel(self)
accel.connectItem(accel.insertItem(qt.TQt.Key_Enter), self.fire)
accel.connectItem(accel.insertItem(qt.TQt.Key_Return), self.fire)
accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.qApp, qt.SLOT("quit()"))
accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.tqApp, qt.SLOT("quit()"))
grid = qt.TQGridLayout(self, 2, 2, 10)
grid.addWidget(quit, 0, 0)

2
examples3/tut2.py

@ -3,7 +3,7 @@
# TQt tutorial 2.
import sys
import qt
from python_tqt import qt
a = qt.TQApplication(sys.argv)

2
examples3/tut3.py