The following rascal will allow horizontal scrolling on my
linux box but fails when run on my mac box.
The failure is that text does not wrap (good) and the
horizontal scroll bar shows the "trough" but there is
no scroll button to move to right to see the text hanging
off of the right edge of the text control...
I have an app that can really use horizontal scrolling
in a text control...Is this a bug?
wxPython version 2.8.4/MacOS X 10.4.9/Python 2.5.1
Thanks,
Jerry
#!/usr/bin/env python
import wx
class myFrame(wx.Frame):
def __init__(self,parent,id):
wx.Frame.__init__(self,parent,id,title='A Text Window')
self.Bind(wx.EVT_CLOSE, self.OnClose)
def OnClose(self,event):
wx.MessageBox("Shutting down.")
self.Destroy()
class TestPanel(wx.Panel):
def __init__(self,parent,label):
self.parent = parent
wx.Panel.__init__(self,parent , style=wx.BORDER_SUNKEN)
box = wx.StaticBox(self,-1,"SQL Input Window")
self.theText = wx.TextCtrl(self,style=wx.TE_MULTILINE|wx.HSCROLL)
sizer=wx.StaticBoxSizer(box,wx.VERTICAL)
sizer.Add(self.theText,1,wx.EXPAND|wx.ALL,0)
self.SetSizer(sizer)
sizer.Fit(self)
if __name__ == "__main__" :
app=wx.PySimpleApp()
myFrame=myFrame(None,-1)
myPanel=TestPanel(myFrame,None)
myFrame.Show()
app.MainLoop()
Hi Jerry
Yet it is. And a bug submission was already made.
Cheers
Paulo
···
On 18-May-07, at 9:54 PM, Jerry LeVan wrote:
The following rascal will allow horizontal scrolling on my
linux box but fails when run on my mac box.
The failure is that text does not wrap (good) and the
horizontal scroll bar shows the "trough" but there is
no scroll button to move to right to see the text hanging
off of the right edge of the text control...
I have an app that can really use horizontal scrolling
in a text control...Is this a bug?
wxPython version 2.8.4/MacOS X 10.4.9/Python 2.5.1
Thanks,
Jerry
#!/usr/bin/env python
import wx
class myFrame(wx.Frame):
def __init__(self,parent,id):
wx.Frame.__init__(self,parent,id,title='A Text Window')
self.Bind(wx.EVT_CLOSE, self.OnClose)
def OnClose(self,event):
wx.MessageBox("Shutting down.")
self.Destroy()
class TestPanel(wx.Panel):
def __init__(self,parent,label):
self.parent = parent
wx.Panel.__init__(self,parent , style=wx.BORDER_SUNKEN)
box = wx.StaticBox(self,-1,"SQL Input Window")
self.theText = wx.TextCtrl(self,style=wx.TE_MULTILINE|wx.HSCROLL)
sizer=wx.StaticBoxSizer(box,wx.VERTICAL)
sizer.Add(self.theText,1,wx.EXPAND|wx.ALL,0)
self.SetSizer(sizer)
sizer.Fit(self)
if __name__ == "__main__" :
app=wx.PySimpleApp()
myFrame=myFrame(None,-1)
myPanel=TestPanel(myFrame,None)
myFrame.Show()
app.MainLoop()
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org