Phoenix icon indicating copy to clipboard operation
Phoenix copied to clipboard

Window display erro

Open ghost opened this issue 7 months ago • 2 comments

Image

Using a Python 3.12.3 environment built with Miniconda on Ubuntu 24.04 LTS, when running the example code above, clicking to maximize the window does not display correctly.

# coding = utf-8
# 代码文件: ch13/ch13_5.py

import wx

# Custom window class MyFrame
class MyFrame(wx.Frame):
    def __init__(self):
        super().__init__(None, title="First wxPython Program!", size=(400, 300), pos=(100, 100))
        panel = wx.Panel(parent=self)
        statictext = wx.StaticText(parent=panel, label="Hello World", pos=(10, 10))
    
app = wx.App()  # Create application object

frm = MyFrame()  # Create window object
frm.Show()  # Show window

app.MainLoop()  # Enter main event loop

ghost avatar Jun 12 '25 03:06 ghost

The error above is displayed when only the StaticText control is used

ghost avatar Jun 12 '25 12:06 ghost

The same issue persists even after using BoxSizer.

ghost avatar Jun 12 '25 12:06 ghost