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
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import wx
#constant The colour I want for the panel and the button
NormColor="green"
class MyFrame(wx.Frame):
""" 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.sizer2.Add(self.NetworkButton, 0)
self.SetBackgroundColour(NormColor) #Apply the colour to the window
self.SetSizer(self.sizer2)
self.Show(True)
app = wx.App(False)
frame = MyFrame(None, 'Alert Window')
app.MainLoop()
thanks for your help