SoFunction
Updated on 2024-11-10

WxPython implementation of a borderless interface

wxPython is a set of excellent GUI graphics library for the Python language . Allows Python programmers to easily create complete, full-featured GUI user interfaces. wxPython is an excellent cross-platform GUI library wxWidgets as a Python package and Python modules provided to the user .

The code to realize the borderless interface is as follows:

import wx
 
class Frame():
 
 def __init__(self):#,pos=(0,0)
 .__init__(self,None,title = u"",pos=(10,10),size=(1340,670),style=wx.SIMPLE_BORDER|wx.TRANSPARENT_WINDOW) 
 (wx.CURSOR_WAIT) 
 ((1340,670))
 ((1340,670))     
  = (self,size=(1340,670))
  = (wx.LANGUAGE_ENGLISH)
 
 Close_Button = (,label=u"Close.",pos=(1240,0),size=(100,45))
 
 (wx.EVT_BUTTON,,Close_Button)
 
 def OnClose(self,event):
 ()
 
if __name__ == "__main__":
 app = ()
 frame = Frame()
 ()
 ()

This is the whole content of this article.