Browse Source

Properly import python_tqt module

This relates to bug 2693

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 6 years ago
parent
commit
2749565477
  1. 2
      contrib/tdepyuic
  2. 2
      examples/mimetype.py
  3. 4
      examples/pytde-sampler/basic_widgets/datepicker.py
  4. 2
      examples/pytde-sampler/basic_widgets/historycombo.py
  5. 2
      examples/pytde-sampler/dialogs/config.py
  6. 2
      examples/pytde-sampler/dialogs/edfind.py
  7. 2
      examples/pytde-sampler/dialogs/edreplace.py
  8. 2
      examples/pytde-sampler/dialogs/font.py
  9. 2
      examples/pytde-sampler/dialogs/progress.py
  10. 2
      examples/pytde-sampler/misc/passivepop.py
  11. 4
      examples/pytde-sampler/qt_widgets/table.py
  12. 6
      examples/pytde-sampler/sampler.py
  13. 2
      examples/uimodules/uiwidgets.py
  14. 2
      examples/uiqxembed.py
  15. 2
      examples/uisampler.py
  16. 3
      pytdeconfig.py

2
contrib/tdepyuic

@ -134,7 +134,7 @@ def doPyuic ():
buff = m.readlines ()
for line in buff:
if addImport and (string.strip (line) == 'from qt import *'):
if addImport and (string.strip (line) == 'from python_tqt.qt import *'):
n.write (line)
addimport (n)
elif addApp and (string.strip (line) == 'a = TQApplication(sys.argv)'):

2
examples/mimetype.py

@ -39,7 +39,7 @@ copyright holder.
import sys
from qt import TQWidget, TQButtonGroup, TQt, TQLabel, TQListView, TQListViewItem
from python_tqt.qt import TQWidget, TQButtonGroup, TQt, TQLabel, TQListView, TQListViewItem
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, KURL
from tdeui import TDEMainWindow, KTabCtl, TDEListBox

4
examples/pytde-sampler/basic_widgets/datepicker.py

@ -1,5 +1,5 @@
from qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL, TQLabel, TQSizePolicy, TQt
from qttable import TQTable
from python_tqt.qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL, TQLabel, TQSizePolicy, TQt
from python_tqt.qttable import TQTable
from tdeui import KTextEdit, KDatePicker, KDateWidget

2
examples/pytde-sampler/basic_widgets/historycombo.py

@ -1,4 +1,4 @@
from qt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQStringList, TQLabel, \
from python_tqt.qt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQStringList, TQLabel, \
SIGNAL, SLOT
from tdeui import KHistoryCombo, KTextEdit

2
examples/pytde-sampler/dialogs/config.py

@ -1,5 +1,5 @@
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQString
from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQString
from tdecore import i18n, TDEConfigSkeleton
from tdeui import KPushButton, TDEConfigDialog, KTextEdit

2
examples/pytde-sampler/dialogs/edfind.py

@ -1,5 +1,5 @@
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
from tdecore import i18n
from tdeui import KPushButton, KEdFind, KTextEdit

2
examples/pytde-sampler/dialogs/edreplace.py

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

2
examples/pytde-sampler/dialogs/font.py

@ -1,5 +1,5 @@
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
from python_tqt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString
from tdecore import i18n
from tdeui import KPushButton, TDEFontDialog, KTextEdit

2
examples/pytde-sampler/dialogs/progress.py

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

2
examples/pytde-sampler/misc/passivepop.py

@ -1,4 +1,4 @@
from qt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQLabel, SIGNAL
from python_tqt.qt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQLabel, SIGNAL
from tdeui import KPassivePopup, KTextEdit, KPushButton
from tdecore import TDEGlobal, TDEIcon

4
examples/pytde-sampler/qt_widgets/table.py

@ -8,8 +8,8 @@ editable table widget.'
import csv
import os
from qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL
from qttable import TQTable
from python_tqt.qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL
from python_tqt.qttable import TQTable
from tdeui import KTextEdit

6
examples/pytde-sampler/sampler.py

@ -10,9 +10,9 @@ import inspect
import os
import sys
from qt import SIGNAL, SLOT, PYSIGNAL, TQt
from qt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog
from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton
from python_tqt.qt import SIGNAL, SLOT, PYSIGNAL, TQt
from python_tqt.qt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog
from python_tqt.qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton
from tdecore import i18n, TDEAboutData, TDEApplication, TDECmdLineArgs, TDEGlobal
from tdecore import TDEGlobalSettings, KWin, KWinModule, KURL, TDEIcon

2
examples/uimodules/uiwidgets.py

@ -1,6 +1,6 @@
import time, sys
from qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, TQt, TQString, TQChar,\
from python_tqt.qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, TQt, TQString, TQChar,\
TQWidget, TQTimer
from tdecore import TDEApplication

2
examples/uiqxembed.py

@ -4,7 +4,7 @@
"""
import sys
from qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT
from python_tqt.qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT
from tdecore import TDEAboutData, TDEApplication, TDECmdLineArgs, TDEGlobal, TDEIcon
from tdecore import KWin, KWinModule

2
examples/uisampler.py

@ -1,7 +1,7 @@
import sys
sys.path.append ("./uimodules")
from qt import TQSplitter, TQWidgetStack, TQWidget, TQListViewItem, SIGNAL, TQCString , TQScrollView, TQRect, TQt
from python_tqt.qt import TQSplitter, TQWidgetStack, TQWidget, TQListViewItem, SIGNAL, TQCString , TQScrollView, TQRect, TQt
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData
from tdeui import TDEMainWindow, TDEListView

3
pytdeconfig.py

@ -22,7 +22,8 @@
# modules that %Import PyKDE modules.
import sipconfig, pyqtconfig
from sip4_tqt import sipconfig
from python_tqt import pyqtconfig
# These are installation specific values created when PyTQt was configured.

Loading…
Cancel
Save