def createWidget(self):
label1 = ttk.Label(self.win, text=u'??????:')
label1.grid(sticky=tk.W, row=0, column=0)
self.cityName = tk.StringVar()
searchBox = ttk.Entry(self.win, width=12, textvariable=self.cityName)
searchBox.grid(sticky=u'WE', row=0, column=1)
searchBox.focus()
searchBtn = ttk.Button(self.win, text=u'Search', command=self._searchBtn)
searchBtn.grid(sticky=u'WE', row=1, columnspan=2)
self.info = scrolledtext.ScrolledText(self.win, width=60, height=15, wrap=tk.WORD)
self.info.grid(column=0, sticky=u'WE', columnspan=2)
评论列表
文章目录