jarvisteach / appJar

Simple Tkinter GUIs in Python
http://appJar.info
Other
615 stars 67 forks source link

Example does not work #622

Open fullmacht opened 4 years ago

fullmacht commented 4 years ago

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

KidlandCode commented 4 years ago

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

On Mon, May 25, 2020 at 10:31 AM fullmacht notifications@github.com 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 https://github.com/jarvisteach/appJar/issues/622, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJRT7TXYF32MQ6OHNZKYBLRTKFOLANCNFSM4NJTRE2A .

fullmacht commented 4 years ago

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 commented 4 years ago

Yah, maybe try

From tkinter import *

On Tue, May 26, 2020 at 4:27 AM fullmacht notifications@github.com wrote:

How did you import Tkinter into the project? This may affect it … <#m_6541401454109074939m-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\tkinterinit_.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 https://github.com/jarvisteach/appJar/issues/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 https://github.com/jarvisteach/appJar/issues/622#issuecomment-633914662, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJRT7XAJFU5A4HXZA7FBKDRTODO5ANCNFSM4NJTRE2A .

fullmacht commented 4 years ago

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_6541401454109074939m-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\tkinterinit.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 commented 4 years ago

Sorry, the correct code is

from tkinter import*

The from is not capitalized.

On Wed, May 27, 2020 at 4:57 AM fullmacht notifications@github.com 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_6541401454109074939m-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\tkinterinit_.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 https://github.com/jarvisteach/appJar/issues/622 <#622 https://github.com/jarvisteach/appJar/issues/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) https://github.com/jarvisteach/appJar/issues/622#issuecomment-633914662>, 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 https://github.com/jarvisteach/appJar/issues/622#issuecomment-634556585, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJRT7UWLYZ2SFPS2ROWTOTRTTPXFANCNFSM4NJTRE2A .

fullmacht commented 4 years ago

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_6541401454109074939m-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\tkinterinit.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 commented 3 years ago

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

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