From 9f61b17a6b307dd0fbc26646f909699c271eb459 Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Sun, 27 Dec 2015 15:07:34 +0100 Subject: [PATCH] [python] fix font in realtimeplot for wx3.0 --- sw/ground_segment/python/real_time_plot/plotpanel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/ground_segment/python/real_time_plot/plotpanel.py b/sw/ground_segment/python/real_time_plot/plotpanel.py index 33ae73f99f5..b7148583a0d 100644 --- a/sw/ground_segment/python/real_time_plot/plotpanel.py +++ b/sw/ground_segment/python/real_time_plot/plotpanel.py @@ -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 @@ -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)