Python Forum
Problem with tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with tkinter
#21
Last I found when looking for import configuring:
The file 'C:\Users\Sylvain\PycharmProjects\P1\t_kinter.py' contains no settings to import.
Please make sure you have generated the file using 'File|Export Settings' feature.
Reply
#22
(Feb-17-2018, 05:39 AM)sylas Wrote: Why nobody told me look at "Configure import settings" of Pycharm. I went there. It will take some hours for me, to understand what to do.

Pycharm told me that my file "t_kinter.py" is an "invalid file". First time I hear that. How to do to make the file valid ? Thanks

Because you have no settings to import. I do not know why it is saying your t_kinter.py is an invalid file, since you did not post the contents of that file and we are not mind readers.

I do not understand why you choose to always over complicate matters. So provided you have installed Python correctly and then installed Pycharm correctly, unless you have multiple versions of Python, there are NO settings that are required to be changed or imported. Pycharm will automatically find your Python installation as well as any modules/libraries.

I suggest you start reading the reply's you get, specifically the one just posted by buran concerning the Pycharm tutorials. If you continue to ignore the advice given you, people will simply no longer respond to your questions.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#23
My last question for this thread: is there somebody working on windows 10, Pycharm 3.3, python 3.6 that has not my problem, that is impossible for Pycharm to import tkinter or pygame. I am very interested to your reply. Thanks
Reply
#24
(Feb-17-2018, 04:00 PM)sylas Wrote: My last question for this thread

And this is my last answer. As you can tell from my signature, I am using Windows 10, Python's latest version 3.6.4 and I am currently using PyCharm's latest release Community Edition 2017-3.3. NO, I do not have the problem you describe. If it works in the command terminal, it should work in PyCharm. If PyCharm cannot find your Python installation, you will get an error in the upper right corner, click on it and select your Python version (there will only be one, if you only have 1 version of Python installed. If none are listed, it means your environmental variables are most likely set incorrectly in Windows).

Again, you need to follow the link by buran to the PyCharm tutorials. Learn the basics, What is the default directory, what is a project and what is a file.

Finally, if a file does not work, copy and paste the contents of the file using the python tags. If an error is generated, copy and paste the entire error code between the error tags. Even if it is a file containing 1 line such as:
import tkinter as TK
if there is a problem with the import when you run the script, it will generate an error. We need to see the entire error.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python3 tkinter radiobutton problem Nick_tkinter 14 5,833 Feb-15-2021, 11:01 PM
Last Post: Nick_tkinter
  tkinter python button position problem Nick_tkinter 3 3,486 Jan-31-2021, 05:15 AM
Last Post: deanhystad
  [Tkinter] ClockIn/Out tkinter problem Maryan 2 2,165 Oct-12-2020, 03:42 AM
Last Post: joe_momma
  tkinter| listbox.insert problem Maryan 3 3,439 Sep-29-2020, 05:34 PM
Last Post: Yoriz
  Tkinter problem DPaul 6 4,048 May-28-2020, 03:40 PM
Last Post: DPaul
  [Tkinter] Tkinter - I have problem after import varaible or function from aGUI to script johnjh 2 2,523 Apr-17-2020, 08:12 PM
Last Post: johnjh
  [Tkinter] Problem with tkinter when creating .exe file Jan_97 2 4,539 Feb-27-2020, 05:17 PM
Last Post: Jan_97
  [Tkinter] Tkinter problem catlessness 1 2,013 Jan-15-2020, 05:17 AM
Last Post: Larz60+
  Problem with Submit button Tkinter Reldaing 2 3,609 Jan-05-2020, 01:58 AM
Last Post: balenaucigasa
  tkinter GUI, problem running seperate files fishglue 17 6,242 Oct-15-2019, 02:56 PM
Last Post: Denni

Forum Jump:

User Panel Messages

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