Skip to content

Commit

Permalink
New WX4.0 does not accept SIZE_USE_EXISTING
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed May 19, 2021
1 parent a2fc65c commit b03ae7c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sw/ground_segment/python/atc/atc_frame.py
Expand Up @@ -154,7 +154,7 @@ def __init__(self):
if self.cfg.Exists('left'):
self.x = int(self.cfg.Read('left'))
self.y = int(self.cfg.Read('top'))
self.SetPosition(wx.Point(self.x,self.y), wx.SIZE_USE_EXISTING)
self.SetPosition(wx.Point(self.x,self.y))

def OnClose(self, event):
self.interface.shutdown()
Expand Down
2 changes: 1 addition & 1 deletion sw/ground_segment/python/energy_mon/energy_mon_viewer.py
Expand Up @@ -427,7 +427,7 @@ def __init__(self):
if self.cfg.Exists('left'):
self.x = int(self.cfg.Read('left'))
self.y = int(self.cfg.Read('top'))
self.SetPosition(wx.Point(self.x,self.y), wx.SIZE_USE_EXISTING)
self.SetPosition(wx.Point(self.x,self.y))

self.Bind(wx.EVT_PAINT, self.OnPaint)
self.Bind(wx.EVT_SIZE, self.OnSize)
Expand Down
4 changes: 2 additions & 2 deletions sw/ground_segment/python/fuelcell/fuel_cell_viewer.py
Expand Up @@ -289,7 +289,7 @@ def get_status(self):
def get_status_perc(self):
return 0.0
def get_status_color(self):
if (self.status) < 1:
if int(self.status) < 1:
return 0.1
elif (self.status) == 1:
return 0.5
Expand Down Expand Up @@ -503,7 +503,7 @@ def __init__(self):
if self.cfg.Exists('left'):
self.x = int(self.cfg.Read('left'))
self.y = int(self.cfg.Read('top'))
self.SetPosition(wx.Point(self.x,self.y), wx.SIZE_USE_EXISTING)
self.SetPosition(wx.Point(self.x,self.y))

self.Bind(wx.EVT_PAINT, self.OnPaint)
self.Bind(wx.EVT_SIZE, self.OnSize)
Expand Down
2 changes: 1 addition & 1 deletion sw/ground_segment/python/svinfo/svinfoviewer.py
Expand Up @@ -157,7 +157,7 @@ def __init__(self):
if self.cfg.Exists('left'):
self.x = int(self.cfg.Read('left'))
self.y = int(self.cfg.Read('top'))
self.SetPosition(wx.Point(self.x,self.y), wx.SIZE_USE_EXISTING)
self.SetPosition(wx.Point(self.x,self.y))

self.Bind(wx.EVT_PAINT, self.OnPaint)
self.Bind(wx.EVT_SIZE, self.OnSize)
Expand Down
2 changes: 1 addition & 1 deletion sw/ground_segment/python/wind/wind_frame.py
Expand Up @@ -189,7 +189,7 @@ def __init__(self):
if self.cfg.Exists('left'):
self.x = int(self.cfg.Read('left'))
self.y = int(self.cfg.Read('top'))
self.SetPosition(wx.Point(self.x,self.y), wx.SIZE_USE_EXISTING)
self.SetPosition(wx.Point(self.x,self.y))

self.Bind(wx.EVT_PAINT, self.OnPaint)
self.Bind(wx.EVT_SIZE, self.OnSize)
Expand Down

0 comments on commit b03ae7c

Please sign in to comment.