mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Use vin/vout.clear() instead of gl.clear()
This commit is contained in:
parent
87b74730c3
commit
00ffea3615
1 changed files with 4 additions and 2 deletions
|
@ -71,7 +71,7 @@ class InputViewer:
|
||||||
self.fillq()
|
self.fillq()
|
||||||
gl.winset(self.wid)
|
gl.winset(self.wid)
|
||||||
if self.qindex >= len(self.queue):
|
if self.qindex >= len(self.queue):
|
||||||
gl.clear()
|
self.vin.clear()
|
||||||
return
|
return
|
||||||
dt, d, cd = self.queue[self.qindex]
|
dt, d, cd = self.queue[self.qindex]
|
||||||
self.vin.showframe(d, cd)
|
self.vin.showframe(d, cd)
|
||||||
|
@ -80,6 +80,7 @@ class InputViewer:
|
||||||
if wid == self.wid >= 0:
|
if wid == self.wid >= 0:
|
||||||
gl.winset(self.wid)
|
gl.winset(self.wid)
|
||||||
gl.reshapeviewport()
|
gl.reshapeviewport()
|
||||||
|
self.vin.clear()
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
|
@ -175,7 +176,7 @@ class OutputViewer:
|
||||||
self.vout.initcolormap()
|
self.vout.initcolormap()
|
||||||
gl.winset(self.wid)
|
gl.winset(self.wid)
|
||||||
if not self.queue:
|
if not self.queue:
|
||||||
gl.clear()
|
self.vout.clear()
|
||||||
return
|
return
|
||||||
dt, d, cd = self.queue[-1]
|
dt, d, cd = self.queue[-1]
|
||||||
self.vout.showframe(d, cd)
|
self.vout.showframe(d, cd)
|
||||||
|
@ -184,6 +185,7 @@ class OutputViewer:
|
||||||
if wid == self.wid >= 0:
|
if wid == self.wid >= 0:
|
||||||
gl.winset(self.wid)
|
gl.winset(self.wid)
|
||||||
gl.reshapeviewport()
|
gl.reshapeviewport()
|
||||||
|
self.vout.clear()
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def backup(self):
|
def backup(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue