Python Forum
Problem In calling a Function from another python file of project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem In calling a Function from another python file of project
#1
Hello Everyone,
Smile

I had created two different python files (EEG.py and Digital_Filter.py) in pycharm IDE under one project.
And I want to call a function declared in Digital_Filter.py into EEG.py but I am receving an error
(ImportError: cannot import name 'apply_filter' from 'Digital_Filter' (C:\Users\LM HealthCare\Documents\Pycharm\Projects\EEG\Digital_Filter.py))


And this is the code I am using to do this
# import Tkinter
from tkinter import *
from Digital_Filter import apply_filter
Now can any one please help me in getting out of this.
Reply


Messages In This Thread
Problem In calling a Function from another python file of project - by vinod2810 - Sep-25-2019, 01:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] remove file from current project rwahdan 2 2,276 Jul-25-2021, 09:14 AM
Last Post: Larz60+
  python file(.py) not working with my tkinter project DeanAseraf1 9 7,076 Mar-22-2020, 10:58 PM
Last Post: ifigazsi
  [Tkinter] Issue with calling a Class/Method in GUI File Fre3k 3 3,008 Mar-08-2020, 12:35 PM
Last Post: Fre3k
  Calling widget from another function? WuchaDoin 1 3,601 Oct-23-2018, 12:55 AM
Last Post: stullis

Forum Jump:

User Panel Messages

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