Fixed some mistakes pertaining to Pesterchum's inheritance structure.
This commit is contained in:
parent
b264498956
commit
0b36b45ddb
3 changed files with 5 additions and 3 deletions
2
convo.py
2
convo.py
|
@ -276,7 +276,7 @@ class PesterMovie(QtGui.QMovie):
|
||||||
|
|
||||||
class PesterText(QtGui.QTextEdit):
|
class PesterText(QtGui.QTextEdit):
|
||||||
def __init__(self, theme, parent=None):
|
def __init__(self, theme, parent=None):
|
||||||
QtGui.QTextEdit.__init__(self, parent)
|
super(PesterText, self).__init__(parent)
|
||||||
if hasattr(self.parent(), 'mainwindow'):
|
if hasattr(self.parent(), 'mainwindow'):
|
||||||
self.mainwindow = self.parent().mainwindow
|
self.mainwindow = self.parent().mainwindow
|
||||||
else:
|
else:
|
||||||
|
|
2
memos.py
2
memos.py
|
@ -244,7 +244,7 @@ _ctag_begin = re.compile(r'<c=(.*?)>')
|
||||||
|
|
||||||
class MemoText(PesterText):
|
class MemoText(PesterText):
|
||||||
def __init__(self, theme, parent=None):
|
def __init__(self, theme, parent=None):
|
||||||
super(MemoText, self).__init__(parent)
|
super(MemoText, self).__init__(theme, parent)
|
||||||
if hasattr(self.parent(), 'mainwindow'):
|
if hasattr(self.parent(), 'mainwindow'):
|
||||||
self.mainwindow = self.parent().mainwindow
|
self.mainwindow = self.parent().mainwindow
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -888,7 +888,9 @@ class chumArea(RightClickTree):
|
||||||
|
|
||||||
class trollSlum(chumArea):
|
class trollSlum(chumArea):
|
||||||
def __init__(self, trolls, mainwindow, parent=None):
|
def __init__(self, trolls, mainwindow, parent=None):
|
||||||
super(trollSlum, self).__init__(parent)
|
#~super(trollSlum, self).__init__(parent)
|
||||||
|
# TODO: Rework inheritance here.
|
||||||
|
QtGui.QTreeWidgetItem.__init__(self, parent)
|
||||||
self.mainwindow = mainwindow
|
self.mainwindow = mainwindow
|
||||||
theme = self.mainwindow.theme
|
theme = self.mainwindow.theme
|
||||||
self.setStyleSheet(theme["main/trollslum/chumroll/style"])
|
self.setStyleSheet(theme["main/trollslum/chumroll/style"])
|
||||||
|
|
Loading…
Reference in a new issue