i want no border around my program but whenever i set wx.NO_BORDER to the frame
i get this little blue box and it takes everything with it.
how can i set wx.no_border without it wrecking everything?
i have tried everything!
thanks.
code:
import wx
class nGUI(wx.Frame):
def __init__(self,parent,id):
wx.Frame.__init__(self,parent,id,size=(500,160),style=wx.DEFAULT_FRAME_STYLE & wx.NO_BORDER & ~wx.SYSTEM_MENU)
panel=wx.Panel(self)
self.Centre()
image_file = '../nGFX/nPySlim.png'
bmp1 = wx.Image(image_file, wx.BITMAP_TYPE_ANY).ConvertToBitmap()
panel.bitmap1 = wx.StaticBitmap(panel, -1, bmp1, (0, 0))
textbox = wx.TextCtrl(panel.bitmap1, -1, pos=(245,50), size=(210, 28))
font = wx.Font(14,wx.FONTFAMILY_SWISS,wx.FONTSTYLE_SLANT,wx.FONTWEIGHT_NORMAL)
textbox.SetFont(font)
wx.Button(panel.bitmap1, -1, pos=(413,90), size=(60, 25), label="Generate")
if __name__=='__main__':
app=wx.PySimpleApp()
frame=nGUI(parent=None,id=-1)
frame.Show()
app.MainLoop()
you need to use
|add styles, and^to remove themso
wx.DEFAULT_FRAME_STYLE | wx.NO_BORDER ^ wx.SYSTEM_MENU