Bug fix: At some point I broke the quirk tester D: fixed now
This commit is contained in:
parent
6ea227b39a
commit
a75ef79ceb
1 changed files with 7 additions and 4 deletions
11
menus.py
11
menus.py
|
@ -213,7 +213,7 @@ from dataobjs import pesterQuirks, PesterHistory
|
||||||
class QuirkTesterWindow(QtGui.QDialog):
|
class QuirkTesterWindow(QtGui.QDialog):
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
QtGui.QDialog.__init__(self, parent)
|
QtGui.QDialog.__init__(self, parent)
|
||||||
self.parent = parent
|
self.prnt = parent
|
||||||
self.mainwindow = parent.mainwindow
|
self.mainwindow = parent.mainwindow
|
||||||
self.setStyleSheet(self.mainwindow.theme["main/defaultwindow/style"])
|
self.setStyleSheet(self.mainwindow.theme["main/defaultwindow/style"])
|
||||||
self.setWindowTitle("Quirk Tester")
|
self.setWindowTitle("Quirk Tester")
|
||||||
|
@ -235,6 +235,9 @@ class QuirkTesterWindow(QtGui.QDialog):
|
||||||
layout_0.addWidget(self.textInput)
|
layout_0.addWidget(self.textInput)
|
||||||
self.setLayout(layout_0)
|
self.setLayout(layout_0)
|
||||||
|
|
||||||
|
def parent(self):
|
||||||
|
return self.prnt
|
||||||
|
|
||||||
def clearNewMessage(self):
|
def clearNewMessage(self):
|
||||||
pass
|
pass
|
||||||
@QtCore.pyqtSlot()
|
@QtCore.pyqtSlot()
|
||||||
|
@ -243,7 +246,7 @@ class QuirkTesterWindow(QtGui.QDialog):
|
||||||
if text == "" or text[0:11] == "PESTERCHUM:":
|
if text == "" or text[0:11] == "PESTERCHUM:":
|
||||||
return
|
return
|
||||||
self.history.add(text)
|
self.history.add(text)
|
||||||
quirks = pesterQuirks(self.parent.testquirks())
|
quirks = pesterQuirks(self.parent().testquirks())
|
||||||
lexmsg = lexMessage(text)
|
lexmsg = lexMessage(text)
|
||||||
if type(lexmsg[0]) is not mecmd:
|
if type(lexmsg[0]) is not mecmd:
|
||||||
try:
|
try:
|
||||||
|
@ -274,7 +277,7 @@ class QuirkTesterWindow(QtGui.QDialog):
|
||||||
self.textArea.addMessage(lexmsg, chum)
|
self.textArea.addMessage(lexmsg, chum)
|
||||||
|
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
self.parent.quirktester = None
|
self.parent().quirktester = None
|
||||||
|
|
||||||
class PesterQuirkTypes(QtGui.QDialog):
|
class PesterQuirkTypes(QtGui.QDialog):
|
||||||
def __init__(self, parent, quirk=None):
|
def __init__(self, parent, quirk=None):
|
||||||
|
@ -1723,7 +1726,7 @@ class UpdatePesterchum(QtGui.QDialog):
|
||||||
layout_0 = QtGui.QVBoxLayout()
|
layout_0 = QtGui.QVBoxLayout()
|
||||||
layout_0.addWidget(self.title)
|
layout_0.addWidget(self.title)
|
||||||
|
|
||||||
self.ok = QtGui.QPushButton("D0WNL04D 4ND 1N5T4LL N0W", self)
|
self.ok = QtGui.QPushButton("D0WNL04D 4ND 1NST4LL N0W", self)
|
||||||
self.ok.setDefault(True)
|
self.ok.setDefault(True)
|
||||||
self.connect(self.ok, QtCore.SIGNAL('clicked()'),
|
self.connect(self.ok, QtCore.SIGNAL('clicked()'),
|
||||||
self, QtCore.SLOT('accept()'))
|
self, QtCore.SLOT('accept()'))
|
||||||
|
|
Loading…
Reference in a new issue