Python Forum
[WxPython] How to create a static white box text
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[WxPython] How to create a static white box text
#2
This looks like it worked!

box_horiz = wx.BoxSizer(wx.HORIZONTAL)
        self.textPath = wx.StaticText(panel, label="hello", style=wx.TE_READONLY|wx.BORDER_SUNKEN)
        self.textPath.SetBackgroundColour((255,255,255)) 
        self.btnPath = wx.Button(panel,-1,"Path")

        box_horiz.Add(self.textPath,10,wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL|wx.ALL,5)
        box_horiz.Add(self.btnPath,3,wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL|wx.ALL,5)
I'll be happy to see if there is any other better way to do this. Thanks
Reply


Messages In This Thread
How to create a static white box text - by giu88 - Aug-14-2018, 09:43 AM
RE: How to create a static white box text - by giu88 - Aug-14-2018, 10:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I'm trying to visualize neuron weights with PIL but getting a white image. pointdexter16 1 402 May-31-2024, 07:51 AM
Last Post: wrestlingrisotto
  [Tkinter] White edge sdgdfgg 4 1,009 Dec-14-2023, 04:48 AM
Last Post: reneejenkins
  [Kivy] Create a function to store text fields and drop downs selection in KivyMD floxia 0 1,794 Dec-18-2022, 04:34 AM
Last Post: floxia
  What should I do the character comes to the door the background changes in to white. Killdoz 0 1,412 May-22-2020, 02:41 PM
Last Post: Killdoz
  Deleting White from Bitmap Anysja 8 5,703 Aug-14-2018, 04:04 PM
Last Post: Anysja

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020