From 012c90744e20d309c0da8a75d2f9cf0a710bdc3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Mon, 14 Apr 2014 12:50:53 +0200 Subject: [PATCH] new version --- texter/texter/448_texter.db | Bin 0 -> 5412 bytes texter/texter/build.sh | 4 +- texter/texter/main.py | 594 ++++++++++++++------- texter/texter/text_sorter.ui | 6 +- texter/texter/text_sorter_ui.py | 16 +- texter/texter/texter.desktop | 6 +- texter/texter/texter.ui | 920 ++++++++++++++++++++++++++++++++ texter/texter/texter2.ui | 122 +++-- texter/texter/texter3.ui | 203 +++++++ texter/texter/texter_ui.py | 119 +---- 10 files changed, 1651 insertions(+), 339 deletions(-) create mode 100644 texter/texter/448_texter.db create mode 100644 texter/texter/texter.ui create mode 100644 texter/texter/texter3.ui diff --git a/texter/texter/448_texter.db b/texter/texter/448_texter.db new file mode 100644 index 0000000000000000000000000000000000000000..2604dd1d42f9aa2b580e05baec4f45c61e5e765f GIT binary patch literal 5412 zcmeHLL2uJA6z)1;tQ+hCcM}dng4EsC14`2#=q7=*!8STk4rp>yH?fw)j^j2f6A~B7 zzu^~h;5l7NJ5|$!rfn*%qAGTr=X}rK^LwAa=f6Y?FPcwsxg7BodWj-bMUGF2L_X_L zCuX8>+zkbDPJDW-`hpgs{L$)u|3Hu`*6XQ=?b&R(g+rtOtVhQ7&_XaXNrG$lXk|f1stH`B`8;AICr*3*G z@XI9}gK z{`RV&2Vf_T!H{?b5YZV*Jf^4_3*t}<2}#XF5>Y|l3N}m(Z`N!)oUFy$eUx@p4b*`- z%nk{d-?!ES9`e+{dS&<^W?!kbxhd3nJE6?=lvOU3vH{w%6>=F6zoJozk>!9$mxZR{ z!YYZ=3OaAMxKccr=<;btO?1d~mh>$%QfABN&WXvwHaNqAnKk%P6HFW68$rU+%oCXQ zrek`oF*)4l(t6(Ml;8(urcnpH2e!d^Vm8nv5EwD((KIfmgVR12L=qPWu1I9WV9hcZ1xyUru#k%lbdnzb%srx5$jTXb8hKv?V5KiNmW;d;D6C= z`7HKkjaoWE06L$Ow$5xl#=CKv1!fIsn)ouLA*8uWP|hRiS|bUHGZ*T{Y!{myW}O4$ zKr1e2h-jNBE@uwk2H=YokqW9^uB%W-cZQdj_r^rZ?}fQY(dy-2L<;el8&(Ym6a|&WNIBfHW*H*U(gd_fw&-I7zQB?t z&60CEE5%1S)6(tqh{o^x#C%Sl1ibUx#x - + + + KEditListWidget::Remove|KEditListWidget::UpDown + + diff --git a/texter/texter/text_sorter_ui.py b/texter/texter/text_sorter_ui.py index ff3790d..12029ec 100644 --- a/texter/texter/text_sorter_ui.py +++ b/texter/texter/text_sorter_ui.py @@ -1,12 +1,11 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'text_sorter.ui' +#!/usr/bin/env python +# coding=UTF-8 # -# Created: Sat Apr 12 14:47:10 2014 -# by: PyQt4 UI code generator 4.10.3 +# Generated by pykdeuic4 from text_sorter.ui on Mon Apr 14 08:37:13 2014 # -# WARNING! All changes made in this file will be lost! - +# WARNING! All changes to this file will be lost. +from PyKDE4 import kdecore +from PyKDE4 import kdeui from PyQt4 import QtCore, QtGui try: @@ -32,6 +31,7 @@ class Ui_text_sorter_dialog(object): self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.text_list = KEditListWidget(text_sorter_dialog) + self.text_list.setButtons(KEditListWidget.Buttons(KEditListWidget.Remove|KEditListWidget.UpDown)) self.text_list.setObjectName(_fromUtf8("text_list")) self.horizontalLayout.addWidget(self.text_list) self.text_preview = KRichTextWidget(text_sorter_dialog) @@ -50,6 +50,6 @@ class Ui_text_sorter_dialog(object): QtCore.QMetaObject.connectSlotsByName(text_sorter_dialog) def retranslateUi(self, text_sorter_dialog): - text_sorter_dialog.setWindowTitle(_translate("text_sorter_dialog", "Dialog", None)) + text_sorter_dialog.setWindowTitle(kdecore.i18n(_fromUtf8("Dialog"))) from PyKDE4.kdeui import KEditListWidget, KRichTextWidget diff --git a/texter/texter/texter.desktop b/texter/texter/texter.desktop index 65c05a9..774cffc 100755 --- a/texter/texter/texter.desktop +++ b/texter/texter/texter.desktop @@ -8,12 +8,12 @@ Icon=texter_icon MimeType= Name[de]=texter Name=texter -Path= +Path=/usr/bin/texter StartupNotify=true -Terminal=false -TerminalOptions= Type=Application +Categories=AudioVideo;Recorder; X-DBUS-ServiceName= X-DBUS-StartupType=none X-KDE-SubstituteUID=false X-KDE-Username= +Keywords=Capture;Broadcast; diff --git a/texter/texter/texter.ui b/texter/texter/texter.ui new file mode 100644 index 0000000..335ee8d --- /dev/null +++ b/texter/texter/texter.ui @@ -0,0 +1,920 @@ + + + MainWindow + + + + 0 + 0 + 1207 + 634 + + + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + + 4.48 Texter + + + + + + + + + &Title + + + item_title + + + + + + + + 100 + 0 + + + + + + + + P&osition + + + item_position_input + + + + + + + + 50 + 16777215 + + + + + + + + S&election + + + edit_item_selection + + + + + + + + 100 + 0 + + + + + + + + &Add / Change + + + + + + + &Remove + + + + + + + Sa&ve + + + + + + + &Publish + + + false + + + + + + + Clear Live + + + + + + + Clear Preview + + + + + + + Previous + + + + + + + Next + + + + + + + + + + A&uto Publish + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 768 + 576 + + + + + 768 + 576 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + + + 128 + 125 + 123 + + + + + + + 128 + 125 + 123 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + + + Monospace + 22 + + + + true + + + true + + + Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextEditable|Qt::TextEditorInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + + 400 + 576 + + + + + 768 + 576 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + + + 128 + 125 + 123 + + + + + + + 128 + 125 + 123 + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 255 + + + + + + + + + Monospace + 22 + + + + Qt::ActionsContextMenu + + + true + + + QFrame::StyledPanel + + + true + + + Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextEditable|Qt::TextEditorInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + + + + + + KRichTextEdit + KTextEdit +
krichtextedit.h
+
+ + KTextEdit + QTextEdit +
ktextedit.h
+
+ + KRichTextWidget + KRichTextEdit +
krichtextwidget.h
+
+ + KIntNumInput + QWidget +
knuminput.h
+
+
+ + item_title + item_position_input + remove_item_button + + + +
diff --git a/texter/texter/texter2.ui b/texter/texter/texter2.ui index b177683..c4e8da1 100644 --- a/texter/texter/texter2.ui +++ b/texter/texter/texter2.ui @@ -7,7 +7,7 @@ 0 0 1554 - 658 + 617 @@ -105,14 +105,17 @@ 22 + + BlankCursor + - live text + - + - + false @@ -130,7 +133,7 @@ - clear live text + clear live text [F1] @@ -144,15 +147,13 @@ - - + + save live text [F2] - - - - - - background + + + + @@ -169,6 +170,19 @@
+ + + + starts/stops live textfield streaming [F9] + + + + + + true + + +
@@ -220,13 +234,13 @@ - clear preview text + clear preview text [F4] - status tip2 + - whatsthis2 + @@ -238,10 +252,22 @@ + + + + + + + + + + + ArrowCursor + - go live with text + go live with text [F5] @@ -253,20 +279,6 @@ - - - - - - - - - - - - - - @@ -275,23 +287,51 @@ - - - background + + + load previous text [F6] + + + + + - + + + load next text [F7] + - + + + + + + + + + + + 0 + 0 + + + + true + + edit sorting of saved texts [F10] + - + + + @@ -314,7 +354,6 @@ - @@ -323,9 +362,9 @@
krichtextedit.h
- KColorButton - QPushButton -
kcolorbutton.h
+ KComboBox + QComboBox +
kcombobox.h
KPushButton @@ -346,7 +385,6 @@ live_text preview_text - publish_button clear_preview_button clear_live_button diff --git a/texter/texter/texter3.ui b/texter/texter/texter3.ui new file mode 100644 index 0000000..a85a248 --- /dev/null +++ b/texter/texter/texter3.ui @@ -0,0 +1,203 @@ + + + MainWindow + + + + 0 + 0 + 1554 + 584 + + + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + + + 169 + 167 + 167 + + + + + + + 244 + 244 + 244 + + + + + + + + 4.48 Texter + + + + :/texter/icon.png:/texter/icon.png + + + + + + + + 768 + 576 + + + + + 768 + 576 + + + + + Monospace + 22 + + + + BlankCursor + + + + + + + + + + + + false + + + true + + + Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextEditable|Qt::TextEditorInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + KRichTextWidget::SupportAlignment|KRichTextWidget::SupportChangeListStyle|KRichTextWidget::SupportFontFamily|KRichTextWidget::SupportFontSize|KRichTextWidget::SupportIndentLists|KRichTextWidget::SupportTextForegroundColor + + + + + + + + 400 + 576 + + + + + 768 + 576 + + + + + Monospace + 22 + + + + Qt::ActionsContextMenu + + + preview text + + + false + + + QFrame::StyledPanel + + + true + + + Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextEditable|Qt::TextEditorInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + KRichTextWidget::SupportAlignment|KRichTextWidget::SupportChangeListStyle|KRichTextWidget::SupportFontFamily|KRichTextWidget::SupportFontSize|KRichTextWidget::SupportTextForegroundColor + + + + + + + + + KRichTextEdit + KTextEdit +
krichtextedit.h
+
+ + KTextEdit + QTextEdit +
ktextedit.h
+
+ + KRichTextWidget + KRichTextEdit +
krichtextwidget.h
+
+
+ + live_text + preview_text + + + + + +
diff --git a/texter/texter/texter_ui.py b/texter/texter/texter_ui.py index ec9116f..b4d1db0 100644 --- a/texter/texter/texter_ui.py +++ b/texter/texter/texter_ui.py @@ -1,12 +1,11 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'texter2.ui' +#!/usr/bin/env python +# coding=UTF-8 # -# Created: Sat Apr 12 14:47:10 2014 -# by: PyQt4 UI code generator 4.10.3 +# Generated by pykdeuic4 from texter3.ui on Mon Apr 14 08:37:12 2014 # -# WARNING! All changes made in this file will be lost! - +# WARNING! All changes to this file will be lost. +from PyKDE4 import kdecore +from PyKDE4 import kdeui from PyQt4 import QtCore, QtGui try: @@ -26,7 +25,7 @@ except AttributeError: class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) - MainWindow.resize(1554, 658) + MainWindow.resize(1554, 584) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) @@ -52,10 +51,8 @@ class Ui_MainWindow(object): MainWindow.setWindowIcon(icon) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) - self.horizontalLayout_3 = QtGui.QHBoxLayout(self.centralwidget) - self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) - self.verticalLayout = QtGui.QVBoxLayout() - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) + self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget) + self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.live_text = KRichTextWidget(self.centralwidget) self.live_text.setMinimumSize(QtCore.QSize(768, 576)) self.live_text.setMaximumSize(QtCore.QSize(768, 576)) @@ -63,34 +60,16 @@ class Ui_MainWindow(object): font.setFamily(_fromUtf8("Monospace")) font.setPointSize(22) self.live_text.setFont(font) + self.live_text.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.BlankCursor)) + self.live_text.setToolTip(_fromUtf8("")) self.live_text.setStatusTip(_fromUtf8("")) self.live_text.setWhatsThis(_fromUtf8("")) self.live_text.setAutoFillBackground(False) self.live_text.setAcceptRichText(True) self.live_text.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextEditable|QtCore.Qt.TextEditorInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse) + self.live_text.setRichTextSupport(KRichTextWidget.RichTextSupportValues(KRichTextWidget.SupportAlignment|KRichTextWidget.SupportChangeListStyle|KRichTextWidget.SupportFontFamily|KRichTextWidget.SupportFontSize|KRichTextWidget.SupportIndentLists|KRichTextWidget.SupportTextForegroundColor)) self.live_text.setObjectName(_fromUtf8("live_text")) - self.verticalLayout.addWidget(self.live_text) - self.horizontalLayout_2 = QtGui.QHBoxLayout() - self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) - self.clear_live_button = KPushButton(self.centralwidget) - icon = QtGui.QIcon.fromTheme(_fromUtf8("edit-clear")) - self.clear_live_button.setIcon(icon) - self.clear_live_button.setObjectName(_fromUtf8("clear_live_button")) - self.horizontalLayout_2.addWidget(self.clear_live_button) - self.live_save_button = KPushButton(self.centralwidget) - icon = QtGui.QIcon.fromTheme(_fromUtf8("document-save")) - self.live_save_button.setIcon(icon) - self.live_save_button.setObjectName(_fromUtf8("live_save_button")) - self.horizontalLayout_2.addWidget(self.live_save_button) - self.live_color = KColorButton(self.centralwidget) - self.live_color.setObjectName(_fromUtf8("live_color")) - self.horizontalLayout_2.addWidget(self.live_color) - spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) - self.horizontalLayout_2.addItem(spacerItem) - self.verticalLayout.addLayout(self.horizontalLayout_2) - self.horizontalLayout_3.addLayout(self.verticalLayout) - self.verticalLayout_2 = QtGui.QVBoxLayout() - self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) + self.horizontalLayout.addWidget(self.live_text) self.preview_text = KRichTextWidget(self.centralwidget) self.preview_text.setMinimumSize(QtCore.QSize(400, 576)) self.preview_text.setMaximumSize(QtCore.QSize(768, 576)) @@ -103,78 +82,18 @@ class Ui_MainWindow(object): self.preview_text.setFrameShape(QtGui.QFrame.StyledPanel) self.preview_text.setAcceptRichText(True) self.preview_text.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextEditable|QtCore.Qt.TextEditorInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse) + self.preview_text.setRichTextSupport(KRichTextWidget.RichTextSupportValues(KRichTextWidget.SupportAlignment|KRichTextWidget.SupportChangeListStyle|KRichTextWidget.SupportFontFamily|KRichTextWidget.SupportFontSize|KRichTextWidget.SupportTextForegroundColor)) self.preview_text.setObjectName(_fromUtf8("preview_text")) - self.verticalLayout_2.addWidget(self.preview_text) - self.horizontalLayout = QtGui.QHBoxLayout() - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - self.clear_preview_button = KPushButton(self.centralwidget) - icon = QtGui.QIcon.fromTheme(_fromUtf8("edit-clear")) - self.clear_preview_button.setIcon(icon) - self.clear_preview_button.setObjectName(_fromUtf8("clear_preview_button")) - self.horizontalLayout.addWidget(self.clear_preview_button) - self.publish_button = KPushButton(self.centralwidget) - icon = QtGui.QIcon.fromTheme(_fromUtf8("media-playback-start")) - self.publish_button.setIcon(icon) - self.publish_button.setObjectName(_fromUtf8("publish_button")) - self.horizontalLayout.addWidget(self.publish_button) - self.previous_button = KPushButton(self.centralwidget) - icon = QtGui.QIcon.fromTheme(_fromUtf8("media-skip-backward")) - self.previous_button.setIcon(icon) - self.previous_button.setObjectName(_fromUtf8("previous_button")) - self.horizontalLayout.addWidget(self.previous_button) - self.next_button = KPushButton(self.centralwidget) - icon = QtGui.QIcon.fromTheme(_fromUtf8("media-skip-forward")) - self.next_button.setIcon(icon) - self.next_button.setObjectName(_fromUtf8("next_button")) - self.horizontalLayout.addWidget(self.next_button) - self.line = QtGui.QFrame(self.centralwidget) - self.line.setFrameShape(QtGui.QFrame.VLine) - self.line.setFrameShadow(QtGui.QFrame.Sunken) - self.line.setObjectName(_fromUtf8("line")) - self.horizontalLayout.addWidget(self.line) - self.preview_color = KColorButton(self.centralwidget) - self.preview_color.setObjectName(_fromUtf8("preview_color")) - self.horizontalLayout.addWidget(self.preview_color) - self.preview_save_button = KPushButton(self.centralwidget) - icon = QtGui.QIcon.fromTheme(_fromUtf8("document-save")) - self.preview_save_button.setIcon(icon) - self.preview_save_button.setObjectName(_fromUtf8("preview_save_button")) - self.horizontalLayout.addWidget(self.preview_save_button) - self.text_open_button = KPushButton(self.centralwidget) - icon = QtGui.QIcon.fromTheme(_fromUtf8("document-open")) - self.text_open_button.setIcon(icon) - self.text_open_button.setObjectName(_fromUtf8("text_open_button")) - self.horizontalLayout.addWidget(self.text_open_button) - spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) - self.horizontalLayout.addItem(spacerItem1) - self.verticalLayout_2.addLayout(self.horizontalLayout) - self.horizontalLayout_3.addLayout(self.verticalLayout_2) + self.horizontalLayout.addWidget(self.preview_text) MainWindow.setCentralWidget(self.centralwidget) - self.statusbar = QtGui.QStatusBar(MainWindow) - self.statusbar.setObjectName(_fromUtf8("statusbar")) - MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) MainWindow.setTabOrder(self.live_text, self.preview_text) - MainWindow.setTabOrder(self.preview_text, self.publish_button) - MainWindow.setTabOrder(self.publish_button, self.clear_preview_button) - MainWindow.setTabOrder(self.clear_preview_button, self.clear_live_button) def retranslateUi(self, MainWindow): - MainWindow.setWindowTitle(_translate("MainWindow", "4.48 Texter", None)) - self.live_text.setToolTip(_translate("MainWindow", "live text", "tooltip1")) - self.clear_live_button.setToolTip(_translate("MainWindow", "clear live text", None)) - self.clear_live_button.setShortcut(_translate("MainWindow", "F1", None)) - self.live_color.setText(_translate("MainWindow", "background", None)) - self.preview_text.setToolTip(_translate("MainWindow", "preview text", None)) - self.clear_preview_button.setToolTip(_translate("MainWindow", "clear preview text", None)) - self.clear_preview_button.setStatusTip(_translate("MainWindow", "status tip2", None)) - self.clear_preview_button.setWhatsThis(_translate("MainWindow", "whatsthis2", None)) - self.clear_preview_button.setShortcut(_translate("MainWindow", "F2", None)) - self.publish_button.setToolTip(_translate("MainWindow", "go live with text", None)) - self.publish_button.setShortcut(_translate("MainWindow", "F4", None)) - self.preview_color.setText(_translate("MainWindow", "background", None)) + MainWindow.setWindowTitle(kdecore.i18n(_fromUtf8("4.48 Texter"))) + self.preview_text.setToolTip(kdecore.i18n(_fromUtf8("preview text"))) -from PyKDE4.kdeui import KColorButton, KPushButton, KRichTextWidget -import texter_rc +from PyKDE4.kdeui import KRichTextWidget +import texter