mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +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()
|
||||
gl.winset(self.wid)
|
||||
if self.qindex >= len(self.queue):
|
||||
gl.clear()
|
||||
self.vin.clear()
|
||||
return
|
||||
dt, d, cd = self.queue[self.qindex]
|
||||
self.vin.showframe(d, cd)
|
||||
|
@ -80,6 +80,7 @@ class InputViewer:
|
|||
if wid == self.wid >= 0:
|
||||
gl.winset(self.wid)
|
||||
gl.reshapeviewport()
|
||||
self.vin.clear()
|
||||
self.show()
|
||||
|
||||
def get(self):
|
||||
|
@ -175,7 +176,7 @@ class OutputViewer:
|
|||
self.vout.initcolormap()
|
||||
gl.winset(self.wid)
|
||||
if not self.queue:
|
||||
gl.clear()
|
||||
self.vout.clear()
|
||||
return
|
||||
dt, d, cd = self.queue[-1]
|
||||
self.vout.showframe(d, cd)
|
||||
|
@ -184,6 +185,7 @@ class OutputViewer:
|
|||
if wid == self.wid >= 0:
|
||||
gl.winset(self.wid)
|
||||
gl.reshapeviewport()
|
||||
self.vout.clear()
|
||||
self.show()
|
||||
|
||||
def backup(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue