Mageia Bugzilla – Attachment 7928 Details for
Bug 18635
adwaita-gtk2-theme: impossible to modify the background colour of a GtkEntry or a wxTextCtrl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
wx.TextCtrl test
test.py (text/x-python), 777 bytes, created by
Nicolas Salguero
on 2016-06-06 16:04:32 CEST
(
hide
)
Description:
wx.TextCtrl test
Filename:
MIME Type:
Creator:
Nicolas Salguero
Created:
2016-06-06 16:04:32 CEST
Size:
777 bytes
patch
obsolete
>#!/usr/bin/env python ># -*- mode:python ; tab-width:4 -*- ex:set tabstop=4 shiftwidth=4 expandtab: -*- > >import wx >import sys > >class TestFrame(wx.Frame): > def __init__(self): > wx.Frame.__init__(self, None, > style=wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX | > wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | > wx.CLIP_CHILDREN | wx.RESIZE_BORDER) > self.Centre() > self.Show(True) > test = wx.TextCtrl(self) > test.SetBackgroundColour(wx.RED) > >class TestApp(wx.App): > def OnInit(self): > frame = TestFrame() > self.SetTopWindow(frame) > return True > >def main(): > app = TestApp() > app.MainLoop() > >if __name__ == '__main__': > sys.exit(main())
#!/usr/bin/env python # -*- mode:python ; tab-width:4 -*- ex:set tabstop=4 shiftwidth=4 expandtab: -*- import wx import sys class TestFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, style=wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | wx.CLIP_CHILDREN | wx.RESIZE_BORDER) self.Centre() self.Show(True) test = wx.TextCtrl(self) test.SetBackgroundColour(wx.RED) class TestApp(wx.App): def OnInit(self): frame = TestFrame() self.SetTopWindow(frame) return True def main(): app = TestApp() app.MainLoop() if __name__ == '__main__': sys.exit(main())
View Attachment As Raw
Actions:
View
Attachments on
bug 18635
:
7927
| 7928 |
7929
|
7930
|
7931
|
7932
|
7933
|
7934