Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 wx.panel,我想在它的一部分上放置一个半透明的矩形。
我怎样才能使用 wxpython 做到这一点?
您可以使用wx.GraphicsContext来做到这一点,wxPython 演示中有一个很好的示例(位于 Miscellaneous 类别中)。