Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example does not work #622

Open
fullmacht opened this issue May 25, 2020 · 7 comments
Open

Example does not work #622

fullmacht opened this issue May 25, 2020 · 7 comments
Labels

Comments

@fullmacht
Copy link

fullmacht commented May 25, 2020

https://github.com/jarvisteach/appJar/blob/appJar/examples/tree.py - tree example does not work. Double click on branch show this:

Exception in Tkinter callback Traceback (most recent call last): File "D:\Python 3.8.2\lib\tkinter\__init__.py", line 1883, in __call__ return self.func(*args) File "D:\Python 3.8.2\lib\idlelib\tree.py", line 148, in flip self.item.OnDoubleClick() File "C:\Users\laptop\PycharmProjects\test\venv\lib\site-packages\appJar\appjar.py", line 12444, in OnDoubleClick self.dblClickFunc(self.treeTitle, self.getAttribute()) TypeError: dClick() takes 1 positional argument but 2 were given

@fullmacht fullmacht changed the title Example don't work Example does not work May 25, 2020
@KidlandCode
Copy link

KidlandCode commented May 25, 2020 via email

@fullmacht
Copy link
Author

How did you import Tkinter into the project? This may affect it

On Mon, May 25, 2020 at 10:31 AM fullmacht @.***> wrote: https://github.com/jarvisteach/appJar/blob/appJar/examples/tree.py http://url - tree example don't work. Thats what pycharm says: Exception in Tkinter callback Traceback (most recent call last): File "D:\Python 3.8.2\lib\tkinter_init_.py", line 1883, in call return self.func(*args) File "D:\Python 3.8.2\lib\idlelib\tree.py", line 148, in flip self.item.OnDoubleClick() File "C:\Users\laptop\PycharmProjects\test\venv\lib\site-packages\appJar\appjar.py", line 12444, in OnDoubleClick self.dblClickFunc(self.treeTitle, self.getAttribute()) TypeError: dClick() takes 1 positional argument but 2 were given — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#622>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJRT7TXYF32MQ6OHNZKYBLRTKFOLANCNFSM4NJTRE2A .

i Imported it so
import tkinter
import _tkinter

@KidlandCode
Copy link

KidlandCode commented May 26, 2020 via email

@fullmacht
Copy link
Author

Yah, maybe try From tkinter import *

On Tue, May 26, 2020 at 4:27 AM fullmacht @.> wrote: How did you import Tkinter into the project? This may affect it … <#m_6541401454109074939_m_-4040903575752908369_> On Mon, May 25, 2020 at 10:31 AM fullmacht @.> wrote: https://github.com/jarvisteach/appJar/blob/appJar/examples/tree.py http://url - tree example don't work. Thats what pycharm says: Exception in Tkinter callback Traceback (most recent call last): File "D:\Python 3.8.2\lib\tkinter_init_.py", line 1883, in call return self.func(*args) File "D:\Python 3.8.2\lib\idlelib\tree.py", line 148, in flip self.item.OnDoubleClick() File "C:\Users\laptop\PycharmProjects\test\venv\lib\site-packages\appJar\appjar.py", line 12444, in OnDoubleClick self.dblClickFunc(self.treeTitle, self.getAttribute()) TypeError: dClick() takes 1 positional argument but 2 were given — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#622 <#622>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJRT7TXYF32MQ6OHNZKYBLRTKFOLANCNFSM4NJTRE2A . i Imported it so import tkinter import _tkinter — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#622 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJRT7XAJFU5A4HXZA7FBKDRTODO5ANCNFSM4NJTRE2A .

PyCharm says invalid syntax

@KidlandCode
Copy link

KidlandCode commented May 27, 2020 via email

@fullmacht
Copy link
Author

Sorry, the correct code is from tkinter import* The from is not capitalized.

On Wed, May 27, 2020 at 4:57 AM fullmacht @.*> wrote: Yah, maybe try From tkinter import * … <#m_-4360843111876205258_> On Tue, May 26, 2020 at 4:27 AM fullmacht @.> wrote: How did you import Tkinter into the project? This may affect it … <#m_6541401454109074939_m_-4040903575752908369_> On Mon, May 25, 2020 at 10:31 AM fullmacht @.> wrote: https://github.com/jarvisteach/appJar/blob/appJar/examples/tree.py http://url - tree example don't work. Thats what pycharm says: Exception in Tkinter callback Traceback (most recent call last): File "D:\Python 3.8.2\lib\tkinter_init_.py", line 1883, in call return self.func(*args) File "D:\Python 3.8.2\lib\idlelib\tree.py", line 148, in flip self.item.OnDoubleClick() File "C:\Users\laptop\PycharmProjects\test\venv\lib\site-packages\appJar\appjar.py", line 12444, in OnDoubleClick self.dblClickFunc(self.treeTitle, self.getAttribute()) TypeError: dClick() takes 1 positional argument but 2 were given — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#622 <#622> <#622 <#622>>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJRT7TXYF32MQ6OHNZKYBLRTKFOLANCNFSM4NJTRE2A . i Imported it so import tkinter import _tkinter — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#622 (comment) <#622 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJRT7XAJFU5A4HXZA7FBKDRTODO5ANCNFSM4NJTRE2A . PyCharm says invalid syntax — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#622 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJRT7UWLYZ2SFPS2ROWTOTRTTPXFANCNFSM4NJTRE2A .

I did what you say and its the same problem.

@jarvisteach
Copy link
Owner

@fullmacht - you're right, the example is broken.

The double click function now requires two parameters. I'll get it fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants