On the wxglade version that I am using, on trying to see a "preview"...
If you have a different question, please start a new thread for that.
This way the subject line is informative to the list, and the archive
of old questions is much more efficient to use and be helpful to the
whole community.
...But to try to answer this new question here this time:
I get some error saying "gray" is not defined. I tried to fix that by saying
#self.plot_hist_listctrl.SetBackgroundColour(wx.SystemSettings_GetColour(gray))
When the Python interpreter gets to the word gray in this line, it
thinks, "gray? What's that? That name has not yet been defined.
That's the error you have. What you meant to do was provide it a
string. That is,
gray
is not the same as
'gray'.
In any case, provided that self.plot_hist_listctrl exists and actually
is a wxListCtrl, this below should work:
self.plot_hist_listctrl.SetBackgroundColour('gray')
If it does not, either provide the error message you got or explain
what the widget is doing that you expect it should not be doing.
Neither of the 2 lines work!
If you want to use the wxPython list or any mailing list for
programming effectively, instead of writing that something "doesn't
work", provide the error you got or explain what the widget was
supposed to do and then what it actually did instead of that.
Or the other thing that happens is, it says "Close Preview" instead of
letting me click "Preview".
That is a Glade thing, and you'd need to get advice from a Glade user.
Is there a user manual or mailing list?
Widget tab gives me an option for "Selection" and I set it to "0" referring
to the 0th element..
For your original question, just post the code as an attachment to
this list as a small runnable sample (see here:
MakingSampleApps - wxPyWiki).
···
On Wed, Jun 12, 2013 at 1:50 AM, Kavitha Bhaskaran <kukki.kanchana@gmail.com> wrote: