我的代码有这样的结构
class Mapsframe(wx.Frame):
def __init__(self):
import application
class Example(wx.Frame,listmix.ColumnSorterMixin):
def __init__(self, *args, **kwargs):
super(Example, self).__init__(*args, **kwargs)
self.InitUI()
def InitUI(self):
def onItemSelected(self,event):
frame = Mapsframe()
application
是另一个正在运行的pythonsicpt,我想将在def onItemSelected
内部本地创建的一些变量传递给python脚本application.py
中的一个类。有什么想法吗?在
可以向MapsFrame类添加另一个接受参数的方法。是这样的:
这样,在示例类中,只需执行以下操作:
^{pr2}$相关问题 更多 >
编程相关推荐