python - How do I link a combo box and a command button? -


यह मेरा कॉम्बो बॉक्स कोड है:

  self.lblname = wx.StaticText (self , -1, "टाइम्स-लोट", wx.Point (20,150)) self.ampleList = ['09 .00-10.00 ',' 10.00-11.00 ',' 11.00-12.00 '] स्वयं। संपादक = wx.ComboBox (स्वयं, 30, "", Wx.Point (150,150), wx.Size (95, -1), self.sampleList, wx.CB_DROPDOWN)  

और यह मेरा आदेश बटन कोड है:

  def OnClick (स्वयं, घटना): self.logger.AppendText ("% d \ n"% event.GetId ())  

मुझे भेजने की आवश्यकता है कमांड बटन पर क्लिक करने के बाद कॉम्बो बॉक्स की सामग्री को एक फ्लैट फ़ाइल में। यदि आप ऑनक्लिक विधि एक ही कक्षा में हैं, तो आप अपने कॉम्बो के माध्यम से कैसे पहुंच सकते हैं?

"post-text" itemprop = "text">

Self.edithear


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -