Skip to content

Commit

Permalink
Corrected placement of zorder for text
Browse files Browse the repository at this point in the history
  • Loading branch information
gedeschaines committed Dec 18, 2023
1 parent 736c7a9 commit 1912f71
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions draw3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,9 +1018,6 @@ def onPress(self, event):

def MainLoop(self):

self.selection = None
self.last_selection = None

self.doneflag = False
self.quitflag = False
self.paused = False
Expand Down Expand Up @@ -1268,20 +1265,17 @@ def MainLoop(self):
# Draw ground plane polygon.
if DBG_LVL > 2:
print("MainLoop: Draw ground plane polygon...")

self.DrawPoly3D(1)

# Draw ground plane grid.
if DBG_LVL > 2:
print("MainLoop: Draw ground plane grid...")

self.DrawGrid3D(1)
self.DrawGrid3D(2)

# Draw target and missile shape polygons.
if DBG_LVL > 2:
print("MainLoop: Draw target and missile polygons...")

while not self.polPQ.isEmpty():
anElement = self.polPQ.priorityDeq()
if DBG_LVL > 3:
Expand All @@ -1293,15 +1287,14 @@ def MainLoop(self):
self.DrawPoly3D(anElement.info)

# Display time, zoom, missile and target state variables.
self.zorder = 1000.0
if ( ktot < 0 ):
# TXYZ padded time record.
self.AnnotateText('time', true_tsec)
else:
# TXYZ true time record.
self.AnnotateText('time', tsec)
true_tsec = tsec

self.zorder = 1000.0
self.AnnotateText('zoom', self.zoom)
self.AnnotateText('Xm', XM)
self.AnnotateText('Ym', YM)
Expand All @@ -1317,8 +1310,7 @@ def MainLoop(self):
self.AnnotateText('PHt', PHT)
self.DrawText()

# Update display of rendered image.

# Update display of rendered image.
if self.backend[0:2] == 'WX':
self.canvas.update()
elif self.backend[0:2] == 'TK':
Expand Down

0 comments on commit 1912f71

Please sign in to comment.