I have a script that was working perfectly with Mint 16 Cinnamon and no more in Mint 17 Cinnamon.
With Mint 17, I can't change the colour of button but I can change the colour of panel (see attached file). I tried several themes and it's the same in all of them.
The script is in python2.7 and wxpython2.8 :
- Code: Select all
# -*- coding: UTF-8 -*-
#constant The colour I want for the panel and the button
""" We simply derive a new class of Frame. """
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, title=title, pos=(20,20), size=(100,100))
self.sizer2 = wx.BoxSizer(wx.HORIZONTAL)
self.NetworkButton=wx.Button(self, -1, "OK")
self.NetworkButton.SetBackgroundColour(NormColor) #Apply the colour to the button
self.SetBackgroundColour(NormColor) #Apply the colour to the window
app = wx.App(False)
frame = MyFrame(None, 'Alert Window')
My only problem is the button's colour (I'm able to enable/disable button). What settings do I have to change to allow my script to change button's colour.
thanks for your help