Properly import python_tqt module - second part

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent 2749565477
commit b7a62620df

@ -263,7 +263,7 @@ different argument counts. Here are some examples:
<TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%"> <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%">
<TR><TD><PRE CLASS="PROGRAMLISTING"> <TR><TD><PRE CLASS="PROGRAMLISTING">
from tdecore import dcop_add, dcop_next from tdecore import dcop_add, dcop_next
from qt import TQByteArray, TQDataStream, IO_ReadOnly, IO_WriteOnly, TQString,\ from python_tqt.qt import TQByteArray, TQDataStream, IO_ReadOnly, IO_WriteOnly, TQString,\
TQCString, TQValueList&lt;TQCString&gt; TQCString, TQValueList&lt;TQCString&gt;
from dcopext import numericTypes, stringTypes from dcopext import numericTypes, stringTypes

@ -36,7 +36,7 @@ copyright holder.
import sys import sys
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData
from dcopexport import DCOPExObj from dcopexport import DCOPExObj
from qt import TQString, TQStringList from python_tqt.qt import TQString, TQStringList
""" """
DCOPExObj provides all of the necessary machinery to DCOP-enable DCOPExObj provides all of the necessary machinery to DCOP-enable

@ -31,7 +31,7 @@ import sys, time
import dcop import dcop
import dcopext import dcopext
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData
from qt import TQString, TQCString from python_tqt.qt import TQString, TQCString

@ -41,7 +41,7 @@ True = not False
import sys import sys
from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet from python_tqt.qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEIcon, TDEIconLoader, TDEShortcut from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEIcon, TDEIconLoader, TDEShortcut
from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEToggleAction, TDEFontSizeAction, TDEFontAction, TDERadioAction,\ from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEToggleAction, TDEFontSizeAction, TDEFontAction, TDERadioAction,\

@ -47,7 +47,7 @@ from tdecore import TDECmdLineArgs, KURL, TDEApplication, i18n, TDEAboutData, Ba
from tdeui import TDEMainWindow, KMessageBox, TDEAction, KStdAction, KKeyDialog, KEditToolbar from tdeui import TDEMainWindow, KMessageBox, TDEAction, KStdAction, KKeyDialog, KEditToolbar
from qt import TQString, TQStringList from python_tqt.qt import TQString, TQStringList
from tdeio import TDETrader from tdeio import TDETrader

@ -4,7 +4,7 @@ iconName = 'about_kde'
helpText = """KDE provides a large set of basic widgets for application use. helpText = """KDE provides a large set of basic widgets for application use.
Select the children of this item to see for yourself.""" Select the children of this item to see for yourself."""
from qt import TQFrame, TQVBoxLayout from python_tqt.qt import TQFrame, TQVBoxLayout
from tdeui import KTextEdit from tdeui import KTextEdit

@ -6,7 +6,7 @@ helpText = ("KDE provides a convenient set of dialog boxes for application use.
"Select the children of this item to see for yourself.") "Select the children of this item to see for yourself.")
from qt import TQFrame, TQVBoxLayout from python_tqt.qt import TQFrame, TQVBoxLayout
from tdeui import KTextEdit from tdeui import KTextEdit

@ -5,7 +5,7 @@ helpText = ("KDE has multiple dialog types to display information about your "
"applicaiton and environment. They provide a tremendous amount of functionality " "applicaiton and environment. They provide a tremendous amount of functionality "
"and consistency. They're easy to use, and they're good for the environment!") "and consistency. They're easy to use, and they're good for the environment!")
from qt import TQFrame, TQVBoxLayout from python_tqt.qt import TQFrame, TQVBoxLayout
from tdeui import KTextEdit from tdeui import KTextEdit
class MainFrame(TQFrame): class MainFrame(TQFrame):

@ -1,7 +1,7 @@
iconName = 'about_kde' iconName = 'about_kde'
labelText = 'TDEAboutApplication' labelText = 'TDEAboutApplication'
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import TDEAboutApplication, KPushButton, KTextEdit from tdeui import TDEAboutApplication, KPushButton, KTextEdit

@ -1,7 +1,7 @@
iconName = 'about_kde' iconName = 'about_kde'
labelText = 'TDEAboutKDE' labelText = 'TDEAboutKDE'
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import TDEAboutKDE, KPushButton, KTextEdit from tdeui import TDEAboutKDE, KPushButton, KTextEdit

@ -6,7 +6,7 @@ labelText = 'KBugReport'
##~ specifies what we want. ##~ specifies what we want.
##~ docItemName = 'KBugReport' ##~ docItemName = 'KBugReport'
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit

@ -2,7 +2,7 @@ iconName = 'colorize'
labelText = 'KColorDialog' labelText = 'KColorDialog'
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit from tdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit

@ -1,7 +1,7 @@
iconName = 'editclear' iconName = 'editclear'
labelText = 'KInputDialog' labelText = 'KInputDialog'
from qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL from python_tqt.qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import KPushButton, KInputDialog, KTextEdit from tdeui import KPushButton, KInputDialog, KTextEdit

@ -1,7 +1,7 @@
iconName = 'configure_shortcuts' iconName = 'configure_shortcuts'
labelText = 'KKeyDialog' labelText = 'KKeyDialog'
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import KPushButton, KKeyDialog, KTextEdit from tdeui import KPushButton, KKeyDialog, KTextEdit

@ -5,7 +5,7 @@ from random import random
from traceback import print_exc from traceback import print_exc
from StringIO import StringIO from StringIO import StringIO
from qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL from python_tqt.qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import KGuiItem, KPushButton, KMessageBox, KTextEdit from tdeui import KGuiItem, KPushButton, KMessageBox, KTextEdit

@ -1,4 +1,4 @@
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import KPushButton, KPasswordDialog, KTextEdit from tdeui import KPushButton, KPasswordDialog, KTextEdit

@ -3,7 +3,7 @@ labelText = 'KTipDialog'
import os import os
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit

@ -6,7 +6,7 @@ helpText = ("KDE icons are nice. "
"Select the children of this item to see for yourself.") "Select the children of this item to see for yourself.")
from qt import TQFrame, TQVBoxLayout from python_tqt.qt import TQFrame, TQVBoxLayout
from tdeui import KTextEdit from tdeui import KTextEdit

@ -3,7 +3,7 @@ iconName = 'icons'
labelText = 'Misc.' labelText = 'Misc.'
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQPoint from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQPoint
from tdecore import i18n from tdecore import i18n
from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit
from tdeui import KRootPermsIcon, KWritePermsIcon from tdeui import KRootPermsIcon, KWritePermsIcon

@ -3,7 +3,7 @@ iconName = 'icons'
labelText = 'Icon Sizing' labelText = 'Icon Sizing'
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n from tdecore import i18n
from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit

@ -4,7 +4,7 @@ iconName = 'misc'
helpText = ("") helpText = ("")
from qt import TQFrame, TQVBoxLayout from python_tqt.qt import TQFrame, TQVBoxLayout
from tdeui import KTextEdit from tdeui import KTextEdit

@ -1,4 +1,4 @@
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQColor, TQSizePolicy, TQLabel from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQColor, TQSizePolicy, TQLabel
from tdecore import i18n from tdecore import i18n
from tdeui import KPushButton, KGradientSelector, KTextEdit, KDualColorButton, KColorPatch from tdeui import KPushButton, KGradientSelector, KTextEdit, KDualColorButton, KColorPatch

@ -1,7 +1,7 @@
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdeui import KWindowInfo, KPushButton, KTextEdit from tdeui import KWindowInfo, KPushButton, KTextEdit
from tdecore import i18n, TDEApplication from tdecore import i18n, TDEApplication

@ -4,7 +4,7 @@ iconName = 'designer'
helpText = """TQt provides a rich set of widgets for application use. helpText = """TQt provides a rich set of widgets for application use.
Select the children of this item to see for yourself.""" Select the children of this item to see for yourself."""
from qt import TQFrame, TQVBoxLayout, SIGNAL from python_tqt.qt import TQFrame, TQVBoxLayout, SIGNAL
from tdeui import KTextEdit from tdeui import KTextEdit

@ -5,7 +5,7 @@
import sys import sys
from tdecore import TDEApplication, TDECmdLineArgs from tdecore import TDEApplication, TDECmdLineArgs
from tdeui import TDEMainWindow from tdeui import TDEMainWindow
from qt import TQVBoxLayout from python_tqt.qt import TQVBoxLayout
## relative import -- cry me a river! ## relative import -- cry me a river!
import about import about

@ -4,7 +4,7 @@ iconName = 'kcmx'
helpText = """KDE and PyKDE allow interaction with the X Window system. Check helpText = """KDE and PyKDE allow interaction with the X Window system. Check
out the nifty samples below.""" out the nifty samples below."""
from qt import TQFrame, TQLabel, TQVBoxLayout from python_tqt.qt import TQFrame, TQLabel, TQVBoxLayout
class MainFrame(TQFrame): class MainFrame(TQFrame):
def __init__(self, parent=None): def __init__(self, parent=None):

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

@ -29,7 +29,7 @@ copyright holder.
import sys import sys
from qt import TQLabel from python_tqt.qt import TQLabel
from tdecore import TDEApplication, TDEIcon, TDEIconLoader from tdecore import TDEApplication, TDEIcon, TDEIconLoader
from tdeui import TDEMainWindow, KSystemTray from tdeui import TDEMainWindow, KSystemTray

@ -1,4 +1,4 @@
from qt import TQVBox, TQLabel, TQLineEdit, TQString, TQPixmap, TQPushButton, TQColor, SIGNAL, TQButtonGroup,\ from python_tqt.qt import TQVBox, TQLabel, TQLineEdit, TQString, TQPixmap, TQPushButton, TQColor, SIGNAL, TQButtonGroup,\
TQRadioButton, TQt, TQWidget TQRadioButton, TQt, TQWidget
from tdecore import TDEAccel, i18n from tdecore import TDEAccel, i18n

@ -1,6 +1,6 @@
import os import os
from qt import TQLabel from python_tqt.qt import TQLabel
from tdecore import TDEApplication from tdecore import TDEApplication

@ -1,6 +1,6 @@
import os, time import os, time
from qt import TQImage, TQLabel, TQPixmap, TQPushButton, SIGNAL, TQColor, TQValidator from python_tqt.qt import TQImage, TQLabel, TQPixmap, TQPushButton, SIGNAL, TQColor, TQValidator
from tdeui import KMessageBox, KDateValidator, KFloatValidator, KIntValidator, KLineEdit, KLed from tdeui import KMessageBox, KDateValidator, KFloatValidator, KIntValidator, KLineEdit, KLed

@ -1,6 +1,6 @@
import os import os
from qt import TQLabel from python_tqt.qt import TQLabel
from tdecore import TDEApplication from tdecore import TDEApplication

@ -28,7 +28,7 @@ All is not rosy, however:
import os import os
import sys import sys
from qt import SIGNAL, TQVBoxLayout, TQLabel from python_tqt.qt import SIGNAL, TQVBoxLayout, TQLabel
from tdecore import i18n, TDEAboutData, TDEApplication, TDEGlobal, TDEIcon, TDECmdLineArgs from tdecore import i18n, TDEAboutData, TDEApplication, TDEGlobal, TDEIcon, TDECmdLineArgs
from tdeui import KDockWidget, TDEListBox, KStdAction from tdeui import KDockWidget, TDEListBox, KStdAction

@ -41,7 +41,7 @@ True = not False
import sys, os import sys, os
from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet from python_tqt.qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEIcon, TDEIconLoader, TDEShortcut, TDEGlobal from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEIcon, TDEIconLoader, TDEShortcut, TDEGlobal
from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEToggleAction, TDEFontSizeAction, TDEFontAction, TDERadioAction,\ from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEToggleAction, TDEFontSizeAction, TDEFontAction, TDERadioAction,\

@ -51,7 +51,7 @@ stringTypes lists
from dcop import DCOPObject, DCOPClient from dcop import DCOPObject, DCOPClient
from tdecore import dcop_add, dcop_next from tdecore import dcop_add, dcop_next
from qt import TQString, TQCString, TQDataStream, IO_ReadOnly, IO_WriteOnly from python_tqt.qt import TQString, TQCString, TQDataStream, IO_ReadOnly, IO_WriteOnly
numericTypes = ["char", "bool", "short", "int", "long", "uchar", "ushort", "uint", "ulong", numericTypes = ["char", "bool", "short", "int", "long", "uchar", "ushort", "uint", "ulong",
"unsigned char", "unsigned short", "unsigned int", "unsigned long", "unsigned char", "unsigned short", "unsigned int", "unsigned long",

@ -32,7 +32,7 @@ copyright holder.
import re import re
from dcop import DCOPClient from dcop import DCOPClient
from qt import TQString, TQCString, TQByteArray, TQDataStream, IO_ReadOnly, IO_WriteOnly from python_tqt.qt import TQString, TQCString, TQByteArray, TQDataStream, IO_ReadOnly, IO_WriteOnly
from tdecore import dcop_add, dcop_next from tdecore import dcop_add, dcop_next
# XXX: 64 bit integers might be handeld wrong! pythons int is AFAIK 32 bit, # XXX: 64 bit integers might be handeld wrong! pythons int is AFAIK 32 bit,

@ -324,7 +324,7 @@ def appQuit (filelist):
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
tmp.write (buff [i] + "\nfrom qt import TQCloseEvent") tmp.write (buff [i] + "\nfrom python_tqt.qt import TQCloseEvent")
i = i + 1 i = i + 1
while (i < nLines) and (string.find (buff [i], "class TDEApplication") < 0): while (i < nLines) and (string.find (buff [i], "class TDEApplication") < 0):

@ -43,7 +43,7 @@ True = not False
import sys import sys
from qt import TQPopupMenu, SIGNAL from python_tqt.qt import TQPopupMenu, SIGNAL
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEStdAccel, TDEIcon, TDEIconLoader from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEStdAccel, TDEIcon, TDEIconLoader
from tdeui import TDEMainWindow, KMessageBox from tdeui import TDEMainWindow, KMessageBox

@ -41,7 +41,7 @@ True = not False
import sys import sys
from qt import TQPopupMenu, SIGNAL from python_tqt.qt import TQPopupMenu, SIGNAL
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n
from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction

@ -41,7 +41,7 @@ True = not False
import sys import sys
from qt import TQPopupMenu, SIGNAL from python_tqt.qt import TQPopupMenu, SIGNAL
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n
from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEActionCollection from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEActionCollection

@ -29,7 +29,7 @@ copyright holder.
import sys import sys
from qt import TQWidget, SIGNAL from python_tqt.qt import TQWidget, SIGNAL
from tdecore import TDEApplication, TDEIcon, TDEIconLoader from tdecore import TDEApplication, TDEIcon, TDEIconLoader
from tdeui import KSystemTray from tdeui import KSystemTray

@ -35,7 +35,7 @@ copyright holder.
import sys import sys
from qt import TQLabel, TQWidget, SIGNAL from python_tqt.qt import TQLabel, TQWidget, SIGNAL
from tdecore import TDEApplication, TDEIcon, TDEIconLoader from tdecore import TDEApplication, TDEIcon, TDEIconLoader
from tdeui import TDEMainWindow, KSystemTray from tdeui import TDEMainWindow, KSystemTray

@ -29,7 +29,7 @@ copyright holder.
import sys import sys
from qt import SIGNAL from python_tqt.qt import SIGNAL
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData
from tdeui import TDEMainWindow from tdeui import TDEMainWindow

@ -42,7 +42,7 @@ True = not False
import sys import sys
from qt import TQPopupMenu, SIGNAL from python_tqt.qt import TQPopupMenu, SIGNAL
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEStdAccel, TDEIcon, TDEIconLoader from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEStdAccel, TDEIcon, TDEIconLoader
from tdeui import TDEMainWindow, KMessageBox from tdeui import TDEMainWindow, KMessageBox

@ -41,7 +41,7 @@ True = not False
import sys import sys
from qt import TQPopupMenu, SIGNAL from python_tqt.qt import TQPopupMenu, SIGNAL
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEShortcut from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEShortcut
from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction

@ -41,7 +41,7 @@ True = not False
import sys import sys
from qt import TQPopupMenu, SIGNAL from python_tqt.qt import TQPopupMenu, SIGNAL
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEShortcut from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEShortcut
from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEActionCollection from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEActionCollection

@ -29,7 +29,7 @@ copyright holder.
import sys import sys
from qt import TQWidget, SIGNAL from python_tqt.qt import TQWidget, SIGNAL
from tdecore import TDEApplication, TDEIcon, TDEIconLoader from tdecore import TDEApplication, TDEIcon, TDEIconLoader
from tdeui import KSystemTray from tdeui import KSystemTray

@ -29,7 +29,7 @@ copyright holder.
import sys import sys
from qt import TQLabel, TQWidget, SIGNAL from python_tqt.qt import TQLabel, TQWidget, SIGNAL
from tdecore import TDEApplication, TDEIcon, TDEIconLoader from tdecore import TDEApplication, TDEIcon, TDEIconLoader
from tdeui import TDEMainWindow, KSystemTray from tdeui import TDEMainWindow, KSystemTray

Loading…
Cancel
Save