Python Forum
[Tkinter] Issue with calling a Class/Method in GUI File
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Issue with calling a Class/Method in GUI File
#3
(Mar-08-2020, 07:08 AM)michael1789 Wrote: Try calling it with a name:

application = app()

Thanks for your reply.

unfortunately I tried that already.

Here are some things I've tried.

app = app() -> same error
app = app().login()   -> same error

The following is working ?
import utils    # this module only contains methods ! there is NO class

def login():
    print('Login')
    #application = app()
    test = utils.calcExpireDate('2000') 
    print(test)
In the latest test I simply tried to call a method from an other module, where is no class.

So I guess it has to do something with the class ? Because I can call a method from an other module ...


Anyone has some additionals ideas whats happening here ?
Is this any TK related issue, or am I messing something up with my classes.

Thanks in advance !
Reply


Messages In This Thread
RE: Issue with calling a Class/Method in GUI File - by Fre3k - Mar-08-2020, 10:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Video [PyQt] Get a executable file (.exe) from a .py file add a promoted class in a QWidget MiguelonReyes 0 769 Oct-17-2023, 11:43 PM
Last Post: MiguelonReyes
Lightbulb [Tkinter] Tkinter Class Import Module Issue AaronCatolico1 6 3,403 Sep-06-2022, 03:37 PM
Last Post: AaronCatolico1
  [PyQt] I get a name Name Error: when calling a method inside a class radoo 2 2,488 Jun-11-2020, 05:02 PM
Last Post: radoo
  [Kivy] How do I reference a method in another class? Exsul1 3 4,427 Mar-02-2020, 07:32 PM
Last Post: Exsul1
  [Tkinter] Call a class method from another (Tk GUI) class? Marbelous 3 6,398 Jan-15-2020, 06:55 PM
Last Post: Marbelous
  Problem In calling a Function from another python file of project vinod2810 7 5,591 Oct-05-2019, 01:09 PM
Last Post: ichabod801
  Issue while importing variable from one file to other mamta_parida 14 6,583 Aug-29-2018, 11:40 AM
Last Post: mamta_parida
  [Tkinter] Class with text widget method AeranicusCascadia 3 7,916 Nov-14-2017, 11:33 PM
Last Post: AeranicusCascadia
  How to define a method in a class 1885 2 4,789 Oct-29-2017, 02:00 AM
Last Post: wavic
  [PyQt] How to put class method into new module? California 0 3,026 Jan-18-2017, 04:05 PM
Last Post: California

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020