Hello,
It's as the subject line says (wxPython 2.2.2, Windows 98)... when
displaying a text entry dialog with several lines of text, it all gets put
on one line which is far too long to display on the screen (the window
disappears off both edges). The bizarre thing is, this has worked many
times in the past with, I'm pretty sure, exactly the same code!
The offending section:
dlg = wxTextEntryDialog(frame,
"%sThe data on the clipboard "
"appears to have"
" %d columns [at "
"least based on the first non-blank line)."
" %s." % (repeat,w,extrastring),
"Which columns?",
"1,%d" % w,
wxOK | wxCANCEL)
if dlg.ShowModal() == wxID_CANCEL:
dlg.Destroy()
return
columns = dlg.GetValue()
dlg.Destroy()
Repeat is a string, simply "" when this is executed normally, w is an
integer, extrastring is some other string...
This is the sort of ridiculous (apparently) and annoying bug which would
make me give up on wxPython--I run into this sort of thing roughly every
month--except that it is such a brilliant product when it works (which is
most of the time--especially when you consider that most of the problems
turn out to due to some oversight on my part!]
Has anyone come across a similar problem?
Thanks a lot...
Chris
···
-------------------------------------------------------------------------
Chris Fama <mailto:Chris.Fama@uq.net.au> Phone:(07) 3870 5639
Brisbane, Australia Mobile:(0400) 833 700
-------------------------------------------------------------------------
For consider Him who endured such hostility from sinners against
Himself, lest you become weary and discouraged in your souls. You have
not yet resisted to bloodshed, striving against sin. And you have
forgotten the exhortation which speaks to you as to sons: "My son, do
not despise the chastening of the LORD, nor be discouraged when you
are rebuked by Him; for whom the LORD loves He chastens, and scourges
every son whom He receives." - Hebrews 12:3-6
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users