problem with wx.Button, only caption visible.

krishnakant Mane researchbase at gmail.com
Wed Jan 3 12:09:43 PST 2007


hello all,
while I was learning to position my controls ont the frame, I
discovered some thing by accident.
may be I am short of knowledge or guidance that's why this problem but
it is a problem for me as of now as a beginner.
as I said before I am blind and I have to get my layout checked by a
sited person to see if it looks good.
what my assistant told me is that when I add a button to the frame,
only the caption is seen and the button's borders are not visible.
what I understood from it is that the background colour of frame and
the colour of the button are the same by default.
it did not look like a normal button.
the code was some thing like this
class window(wx.Frame):
   def __init__(self):
      wx.Frame.__init__(self,wx.ID_ANY, ...)
      ... code here
      #button to be added to the frame
      self.button = wx.Button(self,100,"the button",wx.point(1,1),
size = (100,15))

      self.Show(True)

may be the code is not exactly perfect, I haven't excluded the
important points however.
I do have a doubt however.
will adding this button to a panel solve the problem of displaying it properly?
Krishnakant.




More information about the wxpython-users mailing list