mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 03:57:45 +08:00
[python] fix font in realtimeplot for wx3.0
This commit is contained in:
@@ -176,7 +176,7 @@ class PlotPanel(object):
|
|||||||
self.width = 800
|
self.width = 800
|
||||||
self.height = 200
|
self.height = 200
|
||||||
self.margin = min(self.height / 10, 20)
|
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.pixmap = wx.EmptyBitmap(self.width, self.height)
|
||||||
self.plot_size = self.width
|
self.plot_size = self.width
|
||||||
self.max = -1e32
|
self.max = -1e32
|
||||||
@@ -384,7 +384,7 @@ class PlotPanel(object):
|
|||||||
self.height = height
|
self.height = height
|
||||||
self.plot_size = width
|
self.plot_size = width
|
||||||
self.margin = min(self.height / 10, 20)
|
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):
|
def OnTimer(self):
|
||||||
self.timer.Restart(self.plot_interval)
|
self.timer.Restart(self.plot_interval)
|
||||||
|
|||||||
Reference in New Issue
Block a user