summaryrefslogtreecommitdiff
path: root/Mac/Tools/IDE/PyConsole.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-11-30 00:01:29 +0000
committerJack Jansen <jack.jansen@cwi.nl>2002-11-30 00:01:29 +0000
commit362c7cd07bd32f94e80e5ca954834cfbc1709953 (patch)
tree8f929854033e856a2bf29d9167da8c98f754a416 /Mac/Tools/IDE/PyConsole.py
parent202355a333b98213449b30dcbfa620be86c96085 (diff)
downloadcpython-git-362c7cd07bd32f94e80e5ca954834cfbc1709953.tar.gz
Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
Diffstat (limited to 'Mac/Tools/IDE/PyConsole.py')
-rw-r--r--Mac/Tools/IDE/PyConsole.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Tools/IDE/PyConsole.py b/Mac/Tools/IDE/PyConsole.py
index 23f301b4ef..9a4a44be09 100644
--- a/Mac/Tools/IDE/PyConsole.py
+++ b/Mac/Tools/IDE/PyConsole.py
@@ -108,8 +108,8 @@ class ConsoleTextWidget(W.EditText):
self._buf = ""
self.ted.WEClearUndo()
self.updatescrollbars()
- if Qd.QDIsPortBuffered(self._parentwindow.wid):
- Qd.QDFlushPortBuffer(self._parentwindow.wid, None)
+ if self._parentwindow.wid.GetWindowPort().QDIsPortBuffered():
+ self._parentwindow.wid.GetWindowPort().QDFlushPortBuffer(None)
def selection_ok(self):
selstart, selend = self.getselection()
@@ -300,8 +300,8 @@ class PyOutput:
self._buf = ""
self.w.outputtext.updatescrollbars()
self.w.outputtext.ted.WEFeatureFlag(WASTEconst.weFReadOnly, 1)
- if Qd.QDIsPortBuffered(self.w.wid):
- Qd.QDFlushPortBuffer(self.w.wid, None)
+ if self.w.wid.GetWindowPort().QDIsPortBuffered():
+ self.w.wid.GetWindowPort().QDFlushPortBuffer(None)
def show(self):
if self.closed: