清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
def __init__(self): wx.Frame.__init__(self,None,-1,"Example For TextCtrl",size=(600,500)) self.panel=wx.Panel(self,-1) self.url=wx.TextCtrl(self.panel,-1,"",size=(390,-1)) self.url.SetInsertionPoint(0) self.param1=wx.StaticText(self.panel,-1,"param:") self.pvalue1=wx.TextCtrl(self.panel,-1,"",size=(175,-1)) self.pvalue1.SetInsertionPoint(0) self.value=wx.StaticText(self.panel,-1,"value:") self.value1=wx.TextCtrl(self.panel,-1,"",size=(175,-1)) self.value1.SetInsertionPoint(0) self.sub=wx.Button(self.panel,-1,u"提交") self.Bind(wx.EVT_BUTTON,self.OnClick,self.sub) self.param2=wx.StaticText(self.panel,-1,"param:") self.pvalue2=wx.TextCtrl(self.panel,-1,"",size=(175,-1)) self.pvalue2.SetInsertionPoint(0) self.nvalue2=wx.StaticText(self.panel,-1,"value:") self.value2=wx.TextCtrl(self.panel,-1,"",size=(175,-1)) self.value2.SetInsertionPoint(0) self.result=wx.StaticText(self.panel,-1,"result:") self.json=wx.TextCtrl(self.panel,-1,"",size=(400,300),style=wx.TE_MULTILINE|wx.TE_RICH2) self.json.SetInsertionPoint(0) self.copy=wx.Button(self.panel,-1,u"复制到剪切板") self.Bind(wx.EVT_BUTTON,self.Copy,self.copy) sizer=wx.GridBagSizer(5, 5) sizer.Add(wx.StaticText(self.panel,-1,"URL:"),pos=(0,0),flag=wx.LEFT | wx.TOP) sizer.Add(self.url,pos=(0,1),span=(1,3)) sizer.Add(self.param1,pos=(1,0)) sizer.Add(self.pvalue1,pos=(1,1)) sizer.Add(self.value,pos=(1,2)) sizer.Add(self.value1,pos=(1,3)) sizer.Add(self.sub,pos=(0,4)) sizer.Add(self.param2,pos=(2,0)) sizer.Add(self.pvalue2,pos=(2,1)) sizer.Add(self.nvalue2,pos=(2,2)) sizer.Add(self.value2,pos=(2,3)) sizer.Add(self.result,pos=(3,0)) sizer.Add(self.json,pos=(3,1),span=(3,3)) sizer.Add(self.copy,pos=(3,4)) self.panel.SetSizer(sizer)