gui.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:Weather 作者: dev4love 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号