Does anyone know how to remove a window's border and title bar in wxPython? I want the client area to fill the entire screen.

I have a wxPanel defined as follows:

class FlashPanel(wxPanel):
*def __init__(self, parent, flashFile):
**wxPanel.__init__(self, parent, -1)


**sizer = wxBoxSizer(wxVERTICAL)

**ActiveXWrapper = MakeActiveXClass(flashControl.ShockwaveFlash)
**self.Flash = ActiveXWrapper( self, -1)
**self.Flash.Movie = os.path.join(os.getcwd(), flashFile)
**self.Flash.Menu=False
**sizer.Add(self.Flash, 1, wxEXPAND)
**self.SetSizer(sizer)
**self.SetAutoLayout(True)

**EVT_WINDOW_DESTROY(self, self.OnDestroy)

Do you mean ...

class FlashPanel(wxPanel):
    def __init__(self, parent, flashFile):
        wxPanel.__init__(self, parent, -1)
    
    
        sizer = wxBoxSizer(wxVERTICAL)
    
        ActiveXWrapper = MakeActiveXClass(flashControl.ShockwaveFlash)
        self.Flash = ActiveXWrapper( self, -1)
        self.Flash.Movie = os.path.join(os.getcwd(), flashFile)
        self.Flash.Menu=False
        sizer.Add(self.Flash, 1, wxEXPAND)
        self.SetSizer(sizer)
        self.SetAutoLayout(True)
    
        EVT_WINDOW_DESTROY(self, self.OnDestroy)

When you create your Frame, you can specify style=wxMINIMIZE_BOX, but now you have to supply an exit button somewhere.

When you create your Frame, you can specify style=wxMINIMIZE_BOX, but now you have to supply an exit button somewhere.

Ok I tried that, but ended up with a problem where the contents were drawn in a very small corner of the window:

http://h1.ripway.com/jaafit/sceeen.JPG

Here is the code for my frame:

class FlashFrame(wxFrame):
	def __init__(self, movieFilename):
		wxFrame.__init__(self, None, -1, "PyFlash -- Simple File Viewer", size=(1024, 768), style=wxMINIMIZE_BOX,)
		self.flashPanel = FlashPanel(self, movieFilename)

		self.flashPanel.Flash.OnFSCommand = self.OnFSCommand

		self.timer = wxTimer(self)
		self.timer.Start(10, wxTIMER_CONTINUOUS)
		EVT_TIMER(self, -1, self.OnTimer)

Where does FlashPanel() come from? Can you specify its position and size?

FlashPanel is defined in my first post. It derives from wxPanel.

turns out the answer was

myFrame.ShowFullScreen(True,wxFULLSCREEN_ALL)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.