Tkinter,并调用其他类 [英] Tkinter, and calling other classes

查看:105
本文介绍了Tkinter,并调用其他类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是编程的新手,所以如果有人能帮助我解决我现在已经有几个小时的问题,我只是在徘徊。

i有一段代码是这样给我的,不能被触及:

---------- ------------------------------------------------ <无线电通信/>

Hi,
i''m kind of new at programming, so i was just wandering if anyone can help me with a little problem that i''ve been having for a couple of hours now.
i have a piece of code that''s was given to me like this and can''t be touched:
----------------------------------------------------------

展开 | 选择 | Wrap | 行号

推荐答案

如果您不想指定父级,请按以下方式创建EntryFrame对象:
If you don''t want to specify a parent, make an EntryFrame object like this:
展开 | 选择 | Wrap | 行号


@boxfish


谢谢你,boxfish回复。然而,这似乎对它没有任何影响。

如果我愿意,我可以指定另一个班级的父母,但我不知道该怎么做。在编程方面,我仍然是一个菜鸟。
@boxfish
thank you, boxfish for replying. however that seems to have no effect on it whatsoever.
i can specify a parent in another class if i want to, but i''m not sure how to do that. again i''m still a noob when it comes to programming.


那么你想创建一个EntryFrame对象作为Controller类的成员吗?以下是你将如何做到这一点:

So do you want to create an EntryFrame object as a member in your Controller class? Here is how you would do that:

展开 | 选择 | Wrap | 行号


这篇关于Tkinter,并调用其他类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆