I can't get splitterwindows styles to get working. (Using winXP, Python 2.5.2
& wxpython 2.8.8.1)
And if you look example from the wxpython demos, you can see that the actual
3d effect of the sash is made because the windows on the left & right side
of the sash got style=wx.BORDER_SUNKEN, the sash itself is just made of one
color and have no effect.
When using wx.NO_BORDER with the both splitter windows, is it possible to
get some effect on the sash?
Here's my example code, you can change the splitterwindow style and see that
nothing happens.
import wx
class MyFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, id=-1, title="Splitter test",
size=(480,300))
splitter_styles = [wx.SP_3D, #[0]
wx.SP_3DSASH, #[1]
wx.SP_3DBORDER, #[2]
wx.SP_BORDER, #[3]
wx.SP_NOBORDER, #[4]
wx.SP_NO_XP_THEME,]#[5]
splitter_style = splitter_styles[0] #change this number
splitter = wx.SplitterWindow(self, id=-1, style=splitter_style)
left_panel = wx.Panel(splitter, -1, style=wx.NO_BORDER)
right_panel = wx.Panel(splitter, -1, style=wx.NO_BORDER)
left_panel.SetBackgroundColour("#FFFFFF")
splitter.SplitVertically(left_panel, right_panel, sashPosition=0)
app = wx.PySimpleApp()
MyFrame().Show()
app.MainLoop()
···
–
View this message in context: http://www.nabble.com/wx.SplitterWindow-styles-doesn't-work--tp20084950p20084950.html
Sent from the wxPython-users mailing list archive at Nabble.com.