jason990420 / PySimpleGUI-Projects

Some projects with PySimpleGUI
22 stars 4 forks source link

Suggestion - add Tool to this Repo #1

Open PySimpleGUI opened 3 years ago

PySimpleGUI commented 3 years ago

The bejeweled game crashes if you download the repo and run directly from it due to this code:

C:\Python\Anaconda3\python.exe "C:/Python/PycharmProjects/GitHub/PySimpleGUI-Projects/Bejeweled Game.py"
Traceback (most recent call last):
  File "C:/Python/PycharmProjects/GitHub/PySimpleGUI-Projects/Bejeweled Game.py", line 10, in <module>
    from Tool import Read_URL, Read_File, Save_File
ModuleNotFoundError: No module named 'Tool'

Process finished with exit code 1
from Tool import Read_URL, Read_File, Save_File

If the Tool was provided in this repo, then it would run without any additional work by the user.

jason990420 commented 3 years ago

In readme.md,

image

Tool.py is in another repo, I don't want there're two copies of same file in my differernt repos. Tool.py also referenced in my some papers in one website.

My files or my repos means nothing for me, so maybe someday all repos will be deleted, or re-organized. Backward-compatible is not necessary for me.

PySimpleGUI commented 3 years ago

Yea, I saw the message

Just thinking others may do what I did.... download repo, unzip, start running and having fun. Skipping Bejeweled because it doesn't run.

PySimpleGUI commented 3 years ago

I'm sorry, it was just a suggestion and it's your repo to do as you see fit. I know it's nothing official and I appreciate you posting this stuff. I find it exciting to see.

PySimpleGUI commented 3 years ago

By the way, I like that you did some using .pyw.

I don't have any and your repo showed me that I have a bug in my Project Browser demo by not including .pyw files. It's a nice thing for people to learn. You know, I'm going to make another announcement just about this. Maybe a tweet too! It's a great idea for GUIs.

PySimpleGUI commented 2 years ago

THIS was the game that I found... again!

To get it to run today I needed to remove the size from this code:

frame2 = sg.Frame('', layout=layout2, background_color=G.background,
                 border_width=5, size=(None, G.height*32))

Removed the size:

frame2 = sg.Frame('', layout=layout2, background_color=G.background,
                 border_width=5)

Once I did that, then the game worked great!

image

If it's not been posted in Issue 10, I think users would love to see it.

I've been pondering better ways to get screenshots uploaded and stored for the project. Issue 10 only shows some of the many posts. GitHub hides a lot of the entries. And most people don't check or use the Wiki.

Clearly not critical, but was was fun to find again today!

jason990420 commented 2 years ago

It built about almost two years ago... Just tried to practice Python and PySimpleGUI.