Many of you may have noticed that over a period time I post to the list then
disappear - really because of total frustration with really simple things. I
can write an A4 page long multi join postgres query, do complex database
stuff etc, but fail miserably in understand something as simple as how to
align a label centrally on a toolbar.
I then give up completely and dump the project - stupid yes, but that's me.
This time I'm determined to finish as I've got my drug reference manual
functioning well, and am using it on my desktop, however I want to 'polish
it'.
So Can someone look a the tiny PNG attatched which is the result of this code
below, and tell me how to make the text line up in the centre of the toolbar?
And yes, I've read the docs, and looked at the samples.
Much appreciated.
self\.tb\.AddSimpleTool\(10, bmp, "Enter text to search for", "Long help
for 'Product Information Search'")
self.searchmethodlabel =
wx.StaticText(self.tb,-1," Product ", style = wx.ST_NO_AUTORESIZE)
self.tb.AddControl(self.searchmethodlabel)
self.searchtextbox = wx.TextCtrl(self.tb, ID_SEARCHTEXTBOX,
name ="searchtextbox",size =(100,-1),
style =wx.NO_BORDER|wx.TE_PROCESS_ENTER, value = '')
self.tb.AddControl(self.searchtextbox)
So Can someone look a the tiny PNG attatched which is the
result of this code below, and tell me how to make the text
line up in the centre of the toolbar?
And yes, I've read the docs, and looked at the samples.
I assume you are using GTK2. My experience is that this does not happen with
MSW, but does happen with GTK2.
I reported it some time ago, and Robin suggested that I submit a bug report,
which I did. Here is the link.
Thanks, if my memory serves me correctly I raised it several years ago with
Robin, thought it would have been fixed by now.
I've been a long time vocal critic of the quality of the gui in GTK which as
really sucked for a long long time, although it has improved substantially in
the last 12 months or so. Not to be able to line up text on a label on a
toolbar seems atrocious to me. I ended up sticking a genbutton with no border
on there so at least it looked straight. I need to rotate the label every
time the search method changes (product/generic/indication) which works fine
with label, and works the first time with the genbutton but subsequently
though it executes the line of code, it dosn't change the text!!!!!!!
Must be an easier way.
Regards and thanks again.
Richard
···
On Wednesday 10 January 2007 16:36, Frank Millman wrote:
Richard Terry wrote:
> So Can someone look a the tiny PNG attatched which is the
> result of this code below, and tell me how to make the text
> line up in the centre of the toolbar?
> And yes, I've read the docs, and looked at the samples.
I assume you are using GTK2. My experience is that this does not happen
with MSW, but does happen with GTK2.
I reported it some time ago, and Robin suggested that I submit a bug
report, which I did. Here is the link.
I see that I submitted it in March 2005. It would appear that it has low
priority!
Frank Millman
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
On Wednesday 10 January 2007 19:00, Robin Dunn wrote:
Richard Terry wrote:
Thanks, if my memory serves me correctly I raised it several years ago
with Robin, thought it would have been fixed by now.
It was fixed a couple weeks ago.
Does that mean it should be in the 2.8.0.1 release, or do I need to download code from somewhere/cvs?
It will be in the next release. If you want to hassle with doing a build then you can get the cvs version and give it a go, but the change was in C++ so it will require a full build.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!