Skip to content

Instantly share code, notes, and snippets.

Created November 9, 2011 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1349846 to your computer and use it in GitHub Desktop.
Save anonymous/1349846 to your computer and use it in GitHub Desktop.
Übersetzung
# -*- coding: utf-8 -*-
import os, sys
from PyQt4 import QtCore, QtGui
from rightorwrong import Ui_Dialog as askdlg
class MyDialog(QtGui.QDialog, askdlg):
def __init__(self):
QtGui.QDialog.__init__(self)
self.setupUi(self)
self.setWindowTitle(self.tr(u'Kontrolliere deine Antwort'))
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
dlg=MyDialog()
dlg.show()
sys.exit(app.exec_())
SOURCES = beispiel.py \
TRANSLATIONS = ./translation/de_DE.ts \
CODECFORTR = UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment