Skip to content

Commit

Permalink
Merge pull request autowarefoundation#434 from CPFL/change_Color_to_C…
Browse files Browse the repository at this point in the history
…olour

Runtime Manager, changed wx.Color to wx.Colour for wxPython3
  • Loading branch information
kondoh2 authored Aug 30, 2016
2 parents d4dbfc5 + 19e4fe9 commit 88f9ffb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2561,9 +2561,9 @@ def lb_set(self, txt, col):
self.Layout()

def bar_set(self, prg):
(col1, col2) = (wx.Color(0,0,250), wx.Color(0,0,128))
(col1, col2) = (wx.Colour(0,0,250), wx.Colour(0,0,128))
if prg >= self.lmt_bar_prg:
(col1, col2) = (wx.Color(250,0,0), wx.Color(128,0,0))
(col1, col2) = (wx.Colour(250,0,0), wx.Colour(128,0,0))
self.bar.set_col(col1, col2)
self.bar.set(prg)

Expand Down Expand Up @@ -2600,8 +2600,8 @@ def __init__(self, parent, txt='', pos=wx.DefaultPosition, size=wx.DefaultSize,
self.show_lb = show_lb
self.prg = -1

self.dflt_col1 = wx.Color(250,250,250)
self.dflt_col2 = wx.Color(128,128,128)
self.dflt_col1 = wx.Colour(250,250,250)
self.dflt_col2 = wx.Colour(128,128,128)
self.col1 = self.dflt_col1
self.col2 = self.dflt_col2

Expand Down

0 comments on commit 88f9ffb

Please sign in to comment.