diff Mac/Tools/IDE/PyConsole.py @ 26466:418a7ec92599 legacy-trunk

Lots of minor tweaks for the pep252 checkins, mainly because Qd attributes are no longer supported.
author Jack Jansen <jack.jansen@cwi.nl>
date Sat, 30 Nov 2002 00:01:29 +0000
parents 6f62d51c9c12
children 9220098f0327
line wrap: on
line diff
--- a/Mac/Tools/IDE/PyConsole.py	Fri Nov 29 23:58:51 2002 +0000
+++ b/Mac/Tools/IDE/PyConsole.py	Sat Nov 30 00:01:29 2002 +0000
@@ -108,8 +108,8 @@
 		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 @@
 		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: