开发者

wxpython global variables

开发者 https://www.devze.com 2023-02-18 23:11 出处:网络
im trying to create global variables of wx.Panel, wx.Button, and w开发者_JS百科x.TextCtrl, so that i can \"Edit\" them in different functions

im trying to create global variables of wx.Panel, wx.Button, and w开发者_JS百科x.TextCtrl,

so that i can "Edit" them in different functions

coming from a java background i thought maybe "panel = wx.Panel()" outside all functions might work but i get an error saying i need to send arguments to it, and i dont know what those arguments should be.

disclaimer: i'm a python noobie.


It takes the arguments defined by the wxPanel constructor.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号