jarvisteach / appJar

Simple Tkinter GUIs in Python

Home Page:http://appJar.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example does not work

fullmacht opened this issue · comments

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

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

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

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.

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

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