This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年02月10日 15:55 by isandler, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg62250 - (view) | Author: Ilya Sandler (isandler) | Date: 2008年02月10日 15:55 | |
Given that Tix imports all names from Tkinter this is likely to result in confusion. E.g. >>> from Tix import * >>> print Button Tkinter.Button >>> print OptionMenu Tix.OptionMenu To get to Tkinter's OptionMenu, one needs to do something like import Tkinter Tkinter.OptionMenu |
|||
| msg62255 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2008年02月10日 18:25 | |
What is the issue that you are reporting here? There is nothing wrong with two classes having the same name, AFAICT. That's what modules are for. |
|||
| msg62673 - (view) | Author: Ilya Sandler (isandler) | Date: 2008年02月22日 01:53 | |
I understand your argument. Yet, I am not sure classes with the same name are reasonable here. Tix is too intertwined with Tkinter: E.g a Tix user user can just access Tkinter widgets via Tix: >>> import Tix >>> print Tix.Canvas # This is TkInter's widget Tkinter.Canvas >> import Tix.ComboBox #whoops, we've got Tix's combobox Tix.ComboBox As a matter of fact, Tix docs seem to explicitly recommend accessing Tkinter stuff through Tix: """The former imports the latter, so to use Tix with Tkinter, all you need to do is to import one module. In general, you can just import Tix, and replace the toplevel call to Tkinter.Tk with Tix.Tk""" |
|||
| msg64129 - (view) | Author: Sean Reifschneider (jafo) * (Python committer) | Date: 2008年03月20日 00:01 | |
I don't see the problem with the example listed in the last message. It sounds like the Tix documentation is confirming that this is the desired behavior. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:30 | admin | set | github: 46335 |
| 2008年03月20日 00:01:35 | jafo | set | status: open -> closed nosy: + jafo resolution: works for me messages: + msg64129 priority: normal |
| 2008年02月22日 01:53:16 | isandler | set | messages: + msg62673 |
| 2008年02月10日 18:25:01 | loewis | set | nosy:
+ loewis messages: + msg62255 |
| 2008年02月10日 15:55:39 | isandler | create | |