Skip to content

Commit

Permalink
[python] fix font in realtimeplot for wx3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Dec 28, 2015
1 parent 9395ca7 commit 9f61b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sw/ground_segment/python/real_time_plot/plotpanel.py
Expand Up @@ -175,7 +175,7 @@ def __init__(self, parent, frame):
self.width = 800
self.height = 200
self.margin = min(self.height / 10, 20)
self.font = wx.Font(self.margin / 2, wx.DEFAULT, wx.FONTFLAG_DEFAULT, wx.FONTWEIGHT_NORMAL)
self.font = wx.Font(self.margin / 2, wx.DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL)
self.pixmap = wx.EmptyBitmap(self.width, self.height)
self.plot_size = self.width
self.max = -1e32
Expand Down Expand Up @@ -383,7 +383,7 @@ def OnSize(self, size):
self.height = height
self.plot_size = width
self.margin = min(self.height / 10, 20)
self.font = wx.Font(self.margin / 2, wx.DEFAULT, wx.FONTFLAG_DEFAULT, wx.FONTWEIGHT_NORMAL)
self.font = wx.Font(self.margin / 2, wx.DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL)

def OnTimer(self):
self.timer.Restart(self.plot_interval)
Expand Down

0 comments on commit 9f61b17

Please sign in to comment.