Ver código fonte

Fix examples to properly import python_tqt module

This resolves bug 2693

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 3 anos atrás
pai
commit
e790d08307
94 arquivos alterados com 125 adições e 125 exclusões
  1. 1
    1
      examples2/aclock.py
  2. 1
    1
      examples2/addressbook.py
  3. 5
    5
      examples2/application.py
  4. 1
    1
      examples2/buttongroups.py
  5. 1
    1
      examples2/dclock.py
  6. 1
    1
      examples2/desktop.py
  7. 1
    1
      examples2/dirview.py
  8. 1
    1
      examples2/dragdrop.py
  9. 1
    1
      examples2/dropsite.py
  10. 2
    2
      examples2/gears.py
  11. 1
    1
      examples2/menu.py
  12. 1
    1
      examples2/secret.py
  13. 2
    2
      examples2/semaphore.py
  14. 1
    1
      examples2/splitter.py
  15. 1
    1
      examples2/table.py
  16. 1
    1
      examples2/themes.py
  17. 1
    1
      examples2/tut1.py
  18. 1
    1
      examples2/tut10.py
  19. 1
    1
      examples2/tut11.py
  20. 1
    1
      examples2/tut12.py
  21. 1
    1
      examples2/tut13.py
  22. 1
    1
      examples2/tut14.py
  23. 1
    1
      examples2/tut2.py
  24. 1
    1
      examples2/tut3.py
  25. 1
    1
      examples2/tut4.py
  26. 1
    1
      examples2/tut5.py
  27. 1
    1
      examples2/tut6.py
  28. 1
    1
      examples2/tut7.py
  29. 1
    1
      examples2/tut8.py
  30. 1
    1
      examples2/tut9.py
  31. 1
    1
      examples2/widgets.py
  32. 2
    2
      examples3/SQL/dbconnect.py
  33. 1
    1
      examples3/SQL/frmconnect.py
  34. 1
    1
      examples3/SQL/runform1.py
  35. 1
    1
      examples3/SQL/runform2.py
  36. 2
    2
      examples3/SQL/runsqlex.py
  37. 2
    2
      examples3/SQL/sqlcustom1.py
  38. 2
    2
      examples3/SQL/sqlsubclass5.py
  39. 2
    2
      examples3/SQL/sqltable4.py
  40. 1
    1
      examples3/aclock.py
  41. 1
    1
      examples3/addressbook.py
  42. 1
    1
      examples3/application.py
  43. 1
    1
      examples3/biff.py
  44. 2
    2
      examples3/bigtable.py
  45. 1
    1
      examples3/buttongroups.py
  46. 2
    2
      examples3/canvas/canvas.py
  47. 1
    1
      examples3/checklists.py
  48. 1
    1
      examples3/cursor.py
  49. 1
    1
      examples3/dclock.py
  50. 1
    1
      examples3/desktop.py
  51. 1
    1
      examples3/dirview.py
  52. 1
    1
      examples3/dragdrop.py
  53. 1
    1
      examples3/drawlines.py
  54. 1
    1
      examples3/dropsite.py
  55. 1
    1
      examples3/fontdisplayer.py
  56. 1
    1
      examples3/fonts.py
  57. 2
    2
      examples3/gears.py
  58. 1
    1
      examples3/i18n/i18n.py
  59. 1
    1
      examples3/i18n/mywidget.py
  60. 1
    1
      examples3/lineedits.py
  61. 1
    1
      examples3/listbox.py
  62. 1
    1
      examples3/listboxcombo.py
  63. 1
    1
      examples3/mdi.py
  64. 1
    1
      examples3/menu.py
  65. 1
    1
      examples3/progress.py
  66. 1
    1
      examples3/progressbar.py
  67. 1
    1
      examples3/qdir.py
  68. 1
    1
      examples3/qmag.py
  69. 1
    1
      examples3/rangecontrols.py
  70. 1
    1
      examples3/richtext.py
  71. 1
    1
      examples3/secret.py
  72. 2
    2
      examples3/semaphore.py
  73. 2
    2
      examples3/smalltable.py
  74. 1
    1
      examples3/splitter.py
  75. 1
    1
      examples3/tabdialog.py
  76. 2
    2
      examples3/tablestatistics.py
  77. 1
    1
      examples3/tooltip.py
  78. 1
    1
      examples3/tut1.py
  79. 2
    2
      examples3/tut10.py
  80. 2
    2
      examples3/tut11.py
  81. 2
    2
      examples3/tut12.py
  82. 2
    2
      examples3/tut13.py
  83. 3
    3
      examples3/tut14.py
  84. 1
    1
      examples3/tut2.py
  85. 1
    1
      examples3/tut3.py
  86. 2
    2
      examples3/tut4.py
  87. 2
    2
      examples3/tut5.py
  88. 2
    2
      examples3/tut6.py
  89. 2
    2
      examples3/tut7.py
  90. 2
    2
      examples3/tut8.py
  91. 2
    2
      examples3/tut9.py
  92. 2
    2
      examples3/webbrowser/mainwindow.py
  93. 2
    2
      examples3/webbrowser/webbrowser.py
  94. 1
    1
      examples3/widgets.py

+ 1
- 1
examples2/aclock.py Ver arquivo

@@ -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

+ 1
- 1
examples2/addressbook.py Ver arquivo

@@ -4,7 +4,7 @@


import sys, string
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 5
- 5
examples2/application.py Ver arquivo

@@ -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)


+ 1
- 1
examples2/buttongroups.py Ver arquivo

@@ -10,7 +10,7 @@
#*****************************************************************************/

import sys
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 1
- 1
examples2/dclock.py Ver arquivo

@@ -4,7 +4,7 @@


import sys, string
from qt import *
from python_tqt.qt import *


class DigitalClock(TQLCDNumber):

+ 1
- 1
examples2/desktop.py Ver arquivo

@@ -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

+ 1
- 1
examples2/dirview.py Ver arquivo

@@ -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):

+ 1
- 1
examples2/dragdrop.py Ver arquivo

@@ -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


+ 1
- 1
examples2/dropsite.py Ver arquivo

@@ -1,7 +1,7 @@
# This is part of the dragdrop example.


from qt import *
from python_tqt.qt import *

import secret


+ 2
- 2
examples2/gears.py Ver arquivo

@@ -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):

+ 1
- 1
examples2/menu.py Ver arquivo

@@ -11,7 +11,7 @@
#*****************************************************************************/

import sys, string
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 1
- 1
examples2/secret.py Ver arquivo

@@ -1,7 +1,7 @@
# This is part of the dragdrop example.


from qt import *
from python_tqt.qt import *


def canDecode(e):

+ 2
- 2
examples2/semaphore.py Ver arquivo

@@ -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.

+ 1
- 1
examples2/splitter.py Ver arquivo

@@ -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):

+ 1
- 1
examples2/table.py Ver arquivo

@@ -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=''):

+ 1
- 1
examples2/themes.py Ver arquivo

@@ -13,7 +13,7 @@ import os, sys

# include files for QT

from qt import *
from python_tqt.qt import *


class ButtonsGroups(TQVBox):

+ 1
- 1
examples2/tut1.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 1.

import sys
from qt import *
from python_tqt.qt import *


a = TQApplication(sys.argv)

+ 1
- 1
examples2/tut10.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 10.

import sys
from qt import *
from python_tqt.qt import *


class LCDRange(TQVBox):

+ 1
- 1
examples2/tut11.py Ver arquivo

@@ -4,7 +4,7 @@

import sys
import math
from qt import *
from python_tqt.qt import *


class LCDRange(TQVBox):

+ 1
- 1
examples2/tut12.py Ver arquivo

@@ -5,7 +5,7 @@
import sys
import math
import random
from qt import *
from python_tqt.qt import *


class LCDRange(TQVBox):

+ 1
- 1
examples2/tut13.py Ver arquivo

@@ -5,7 +5,7 @@
import sys
import math
import random
from qt import *
from python_tqt.qt import *


class LCDRange(TQWidget):

+ 1
- 1
examples2/tut14.py Ver arquivo

@@ -5,7 +5,7 @@
import sys
import math
import random
from qt import *
from python_tqt.qt import *


class LCDRange(TQWidget):

+ 1
- 1
examples2/tut2.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 2.

import sys
from qt import *
from python_tqt.qt import *


a = TQApplication(sys.argv)

+ 1
- 1
examples2/tut3.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 3.

import sys
from qt import *
from python_tqt.qt import *

a = TQApplication(sys.argv)


+ 1
- 1
examples2/tut4.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 4.

import sys
from qt import *
from python_tqt.qt import *


class MyWidget(TQWidget):

+ 1
- 1
examples2/tut5.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 5.

import sys
from qt import *
from python_tqt.qt import *


class MyWidget(TQVBox):

+ 1
- 1
examples2/tut6.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 6.

import sys
from qt import *
from python_tqt.qt import *


class LCDRange(TQVBox):

+ 1
- 1
examples2/tut7.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 7.

import sys
from qt import *
from python_tqt.qt import *


class LCDRange(TQVBox):

+ 1
- 1
examples2/tut8.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 8.

import sys
from qt import *
from python_tqt.qt import *


class LCDRange(TQVBox):

+ 1
- 1
examples2/tut9.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 9.

import sys
from qt import *
from python_tqt.qt import *


class LCDRange(TQVBox):

+ 1
- 1
examples2/widgets.py Ver arquivo

@@ -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
- 2
examples3/SQL/dbconnect.py Ver arquivo

@@ -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 *

+ 1
- 1
examples3/SQL/frmconnect.py Ver arquivo

@@ -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):

+ 1
- 1
examples3/SQL/runform1.py Ver arquivo

@@ -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

+ 1
- 1
examples3/SQL/runform2.py Ver arquivo

@@ -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

+ 2
- 2
examples3/SQL/runsqlex.py Ver arquivo

@@ -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

+ 2
- 2
examples3/SQL/sqlcustom1.py Ver arquivo

@@ -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
- 2
examples3/SQL/sqlsubclass5.py Ver arquivo

@@ -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
- 2
examples3/SQL/sqltable4.py Ver arquivo

@@ -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


+ 1
- 1
examples3/aclock.py Ver arquivo

@@ -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

+ 1
- 1
examples3/addressbook.py Ver arquivo

@@ -4,7 +4,7 @@


import sys, string
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 1
- 1
examples3/application.py Ver arquivo

@@ -4,7 +4,7 @@


import sys, string
from qt import *
from python_tqt.qt import *


fileopen = [

+ 1
- 1
examples3/biff.py Ver arquivo

@@ -1,7 +1,7 @@
#!/usr/bin/env python

import os, sys, string
from qt import *
from python_tqt.qt import *


if TQT_VERSION < 0x030100:

+ 2
- 2
examples3/bigtable.py Ver arquivo

@@ -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

+ 1
- 1
examples3/buttongroups.py Ver arquivo

@@ -10,7 +10,7 @@
#*****************************************************************************/

import sys
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 2
- 2
examples3/canvas/canvas.py Ver arquivo

@@ -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



+ 1
- 1
examples3/checklists.py Ver arquivo

@@ -4,7 +4,7 @@
# Copyright (C) 2002 Oleksandr Yakovlyev (yshurik) <yshurik@thekompany.com>

import sys
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 1
- 1
examples3/cursor.py Ver arquivo

@@ -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.


+ 1
- 1
examples3/dclock.py Ver arquivo

@@ -4,7 +4,7 @@


import sys, string
from qt import *
from python_tqt.qt import *


class DigitalClock(TQLCDNumber):

+ 1
- 1
examples3/desktop.py Ver arquivo

@@ -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

+ 1
- 1
examples3/dirview.py Ver arquivo

@@ -12,7 +12,7 @@
***************************************************************************"""

import sys
from qt import *
from python_tqt.qt import *

folder_closed_xpm = [
"16 16 9 1",

+ 1
- 1
examples3/dragdrop.py Ver arquivo

@@ -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


+ 1
- 1
examples3/drawlines.py Ver arquivo

@@ -1,7 +1,7 @@
#!/usr/bin/env python

import sys, random
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 1
- 1
examples3/dropsite.py Ver arquivo

@@ -1,7 +1,7 @@
# This is part of the dragdrop example.


from qt import *
from python_tqt.qt import *

import secret


+ 1
- 1
examples3/fontdisplayer.py Ver arquivo

@@ -11,7 +11,7 @@
***************************************************************************"""

import sys
from qt import *
from python_tqt.qt import *

class FontRowTable( TQFrame ):
def __init__( self, parent=None, name=None ):

+ 1
- 1
examples3/fonts.py Ver arquivo

@@ -11,7 +11,7 @@
***************************************************************************"""

import sys
from qt import *
from python_tqt.qt import *

class Viewer( TQWidget ):
def __init__( self ):

+ 2
- 2
examples3/gears.py Ver arquivo

@@ -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):

+ 1
- 1
examples3/i18n/i18n.py Ver arquivo

@@ -5,7 +5,7 @@
from whrandom import randint
import sys

from qt import *
from python_tqt.qt import *

from mywidget import MyWidget


+ 1
- 1
examples3/i18n/mywidget.py Ver arquivo

@@ -1,6 +1,6 @@
# Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de>

from qt import *
from python_tqt.qt import *

class MyWidget(TQMainWindow):


+ 1
- 1
examples3/lineedits.py Ver arquivo

@@ -11,7 +11,7 @@
#*****************************************************************************/

import sys
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 1
- 1
examples3/listbox.py Ver arquivo

@@ -11,7 +11,7 @@
***************************************************************************"""

import sys
from qt import *
from python_tqt.qt import *

FALSE = 0
TRUE = 1

+ 1
- 1
examples3/listboxcombo.py Ver arquivo

@@ -11,7 +11,7 @@
***************************************************************************"""

import sys
from qt import *
from python_tqt.qt import *

FALSE = 0
TRUE = 1

+ 1
- 1
examples3/mdi.py Ver arquivo

@@ -4,7 +4,7 @@


import sys, string
from qt import *
from python_tqt.qt import *


fileopen = [

+ 1
- 1
examples3/menu.py Ver arquivo

@@ -11,7 +11,7 @@
#*****************************************************************************/

import sys, string
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 1
- 1
examples3/progress.py Ver arquivo

@@ -13,7 +13,7 @@
#*****************************************************************************/

import sys
from qt import *
from python_tqt.qt import *
from random import randint

class AnimatedThingy(TQLabel):

+ 1
- 1
examples3/progressbar.py Ver arquivo

@@ -12,7 +12,7 @@

#import pdb
import sys
from qt import *
from python_tqt.qt import *

FALSE = 0
TRUE = 1

+ 1
- 1
examples3/qdir.py Ver arquivo

@@ -4,7 +4,7 @@

import os
import pickle
from qt import *
from python_tqt.qt import *
from dirview import Directory, DirectoryView

bookmarks = [

+ 1
- 1
examples3/qmag.py Ver arquivo

@@ -11,7 +11,7 @@
#*****************************************************************************/

import sys
from qt import *
from python_tqt.qt import *

TRUE = 1
FALSE = 0

+ 1
- 1
examples3/rangecontrols.py Ver arquivo

@@ -11,7 +11,7 @@
***************************************************************************"""

import sys
from qt import *
from python_tqt.qt import *

INT_MAX = sys.maxint


+ 1
- 1
examples3/richtext.py Ver arquivo

@@ -11,7 +11,7 @@
***************************************************************************"""

import sys
from qt import *
from python_tqt.qt import *

sayings = [
"<b>Saying 1:</b><br>"

+ 1
- 1
examples3/secret.py Ver arquivo

@@ -1,7 +1,7 @@
# This is part of the dragdrop example.


from qt import *
from python_tqt.qt import *


def canDecode(e):

+ 2
- 2
examples3/semaphore.py Ver arquivo

@@ -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
- 2
examples3/smalltable.py Ver arquivo

@@ -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

+ 1
- 1
examples3/splitter.py Ver arquivo

@@ -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):

+ 1
- 1
examples3/tabdialog.py Ver arquivo

@@ -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 ):

+ 2
- 2
examples3/tablestatistics.py Ver arquivo

@@ -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

+ 1
- 1
examples3/tooltip.py Ver arquivo

@@ -11,7 +11,7 @@
***************************************************************************"""

import sys
from qt import *
from python_tqt.qt import *
from random import random

class DynamicTip( TQToolTip ):

+ 1
- 1
examples3/tut1.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 1.

import sys
import qt
from python_tqt import qt


a = qt.TQApplication(sys.argv)

+ 2
- 2
examples3/tut10.py Ver arquivo

@@ -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)

+ 2
- 2
examples3/tut11.py Ver arquivo

@@ -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)

+ 2
- 2
examples3/tut12.py Ver arquivo

@@ -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)

+ 2
- 2
examples3/tut13.py Ver arquivo

@@ -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)

+ 3
- 3
examples3/tut14.py Ver arquivo

@@ -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)

+ 1
- 1
examples3/tut2.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 2.

import sys
import qt
from python_tqt import qt


a = qt.TQApplication(sys.argv)

+ 1
- 1
examples3/tut3.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 3.

import sys
import qt
from python_tqt import qt


a = qt.TQApplication(sys.argv)

+ 2
- 2
examples3/tut4.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 4.

import sys
import qt
from python_tqt import qt


class MyWidget(qt.TQWidget):
@@ -17,7 +17,7 @@ class MyWidget(qt.TQWidget):
quit.setGeometry(62, 40, 75, 30)
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()"))


a = qt.TQApplication(sys.argv)

+ 2
- 2
examples3/tut5.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 5.

import sys
import qt
from python_tqt import qt


class MyWidget(qt.TQVBox):
@@ -13,7 +13,7 @@ class MyWidget(qt.TQVBox):
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()"))

lcd = qt.TQLCDNumber(2, self, "lcd")


+ 2
- 2
examples3/tut6.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 6.

import sys
import qt
from python_tqt import qt


class LCDRange(qt.TQVBox):
@@ -24,7 +24,7 @@ class MyWidget(qt.TQVBox):
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()"))

grid = qt.TQGrid(4, self)


+ 2
- 2
examples3/tut7.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 7.

import sys
import qt
from python_tqt import qt


class LCDRange(qt.TQVBox):
@@ -31,7 +31,7 @@ class MyWidget(qt.TQVBox):
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()"))

grid = qt.TQGrid(4, self)


+ 2
- 2
examples3/tut8.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 8.

import sys
import qt
from python_tqt import qt


class LCDRange(qt.TQVBox):
@@ -67,7 +67,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)

+ 2
- 2
examples3/tut9.py Ver arquivo

@@ -3,7 +3,7 @@
# TQt tutorial 9.

import sys
import qt
from python_tqt import qt


class LCDRange(qt.TQVBox):
@@ -73,7 +73,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)

+ 2
- 2
examples3/webbrowser/mainwindow.py Ver arquivo

@@ -8,8 +8,8 @@
# WARNING! All changes made in this file will be lost!


from qt import *
from qtaxcontainer import TQAxWidget
from python_tqt.qt import *
from python_tqt.qtaxcontainer import TQAxWidget

image0_data = [
"32 32 3 1",

+ 2
- 2
examples3/webbrowser/webbrowser.py Ver arquivo

@@ -7,8 +7,8 @@


import sys
import qt
import qtaxcontainer
from python_tqt import qt
from python_tqt import qtaxcontainer

import mainwindow


+ 1
- 1
examples3/widgets.py Ver arquivo

@@ -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.

Carregando…
Cancelar
Salvar