Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: cancelling open dialog gives empty string
Post: RE: cancelling open dialog gives empty string

Assuming this code is in a function (it probably should be), then; if text_file = "": returnafter the filedialog line. (Jul-01-2021, 01:04 PM)rwahdan Wrote: Hi, I am trying to open a file us...
steve_shambles GUI 2 265 Jul-17-2021, 09:17 PM
    Thread: Neural Art GUI- Create 60s style background videos
Post: Neural Art GUI- Create 60s style background videos

Neural Art GUI V0.11 (first release) By Steve Shambles, July 2021 A very Basic GUI for Windows and Linux to create art videos easily and quickly. [Image: https://i.postimg.cc/LXw1JgXv/neuralart-.....
steve_shambles Code sharing 0 217 Jul-16-2021, 07:06 PM
    Thread: Tkinter guide?
Post: RE: Tkinter guide?

if you still want to know how to open a window in full screen: wm.attributes("-fullscreen",1) This site looks good for total Tkinter beginners: https://mycodenotein.netlify.app/src/tkinter It is in ...
steve_shambles GUI 16 1,734 May-05-2021, 07:15 AM
    Thread: PyInstaller Executable Does Nothing
Post: RE: PyInstaller Executable Does Nothing

It looks like a problem with your setup. Did you tick "path" on the Python installer when you installed Python? Are you using a virtual environment?
steve_shambles General Coding Help 18 1,836 Feb-19-2021, 02:44 AM
    Thread: PyInstaller Executable Does Nothing
Post: RE: PyInstaller Executable Does Nothing

It worked OK for me on Win 7 Python V3.76 Try this line on pyinstaller: pyinstaller yourapp.py -n yourapp --windowed --onefile
steve_shambles General Coding Help 18 1,836 Feb-18-2021, 12:07 AM
    Thread: I guess it's about print
Post: RE: I guess it's about print

I think the problem is you cant do a calculation where you put it, so put the calculation money = money-取款 on a separate line and it appears to work: money=1000 取款=int(input('请输入取款金额:')) if 取款<=m...
steve_shambles General Coding Help 2 463 Feb-08-2021, 08:34 PM
    Thread: Trouble getting data from an entry.
Post: RE: Trouble getting data from an entry.

I think the problem is the .pack integrated into one line, I've seen this before, can cause problems, try this line instead for the entry: url_box = Entry(root, borderwidth = 4, width = 60) url_box.p...
steve_shambles GUI 2 499 Feb-05-2021, 03:35 AM
    Thread: DisMal
Post: DisMal

I have just finished a new and weird GUI for DisMal, disposable Email. [Image: https://i.postimg.cc/pXk2hhs0/dismal-screenshot-2w.png] GitHub: https://github.com/steveshambles/DisMal DisMal Homepag...
steve_shambles Code sharing 0 1,287 Feb-01-2021, 08:29 PM
    Thread: Having trouble using photo for background
Post: RE: Having trouble using photo for background

change the background_label line to reference the "filename" variable that you set in previous line. background_label = Label(root, image=filename) Also you can't read a jpg file with this method yo...
steve_shambles GUI 2 429 Jan-27-2021, 07:12 PM
    Thread: Button States
Post: RE: Button States

I think he just wants to know how to disable a button when clicked. from tkinter import * root = Tk() def my_fun(): #make the my_btn state disabled #do some thing else my_btn.config(s...
steve_shambles GUI 4 662 Jan-27-2021, 11:31 AM
    Thread: How can I make the cards look like they are spinning
Post: RE: How can I make the cards look like they are sp...

Thanks deanhystad, that gives me something to work on.
steve_shambles GUI 5 660 Dec-23-2020, 09:31 PM
    Thread: How can I make the cards look like they are spinning
Post: RE: How can I make the cards look like they are sp...

I didn't find anything that made sense to me to make a reel spin, but I did come across the canvas move attribute, which might play about with to see what happens. https://www.geeksforgeeks.org/pyth...
steve_shambles GUI 5 660 Dec-21-2020, 07:44 PM
    Thread: How can I make the cards look like they are spinning
Post: RE: How can I make the cards look like they are sp...

Failing that does anyone know the mechanics of how to do the spinning effect? For example do you literally move each card(symbol) down a column? Or use parts of each symbol? or use a strip of the symb...
steve_shambles GUI 5 660 Dec-21-2020, 03:00 PM
    Thread: How can I make the cards look like they are spinning
Post: How can I make the cards look like they are spinni...

"""Spinning reel test. Small working example. How can I make the cards look like they are spinning, like in a real slot machine? There will be 5 reels in the game eventually. Also, how d...
steve_shambles GUI 5 660 Dec-21-2020, 08:55 AM
    Thread: Sync It v0.60
Post: Sync It v0.60

I have just updated my little systray app for Windows to V0.60, adding a profiles feature and other small improvements. [Image: https://1.bp.blogspot.com/-hBBpQwG5a4g/X...s-menu.jpg] The source and...
steve_shambles Code sharing 0 506 Sep-25-2020, 10:17 AM
    Thread: 300 free curated Python code snippets
Post: 300 free curated Python code snippets

For the last 22 months I have been collecting and editing Python code snippets. I am pleased to announce there are now 300 snippets of code available in the collection. They are free to anyone that w...
steve_shambles Code sharing 1 841 Jul-14-2020, 02:58 PM
    Thread: Sound from the tkinter.messagebox
Post: RE: Sound from the tkinter.messagebox

Pyautogui offers pop ups with no sound: pyautogui.alert('This displays some text with an OK button.')
steve_shambles GUI 2 2,060 Jul-11-2020, 10:45 AM
    Thread: converting .py to .asc
Post: RE: converting .py to .asc

Oh dear looks like I misunderstood, sorry. (Jul-10-2020, 12:28 PM)snippsat Wrote: (Jul-10-2020, 10:07 AM)steve_shambles Wrote: The file already is ASCII, just renameI don't think ASCII has someth...
steve_shambles General Coding Help 4 729 Jul-10-2020, 10:19 PM
    Thread: Article Extraction - Wordpress
Post: RE: Article Extraction - Wordpress

OK sorry it was no help. (Jul-10-2020, 12:49 PM)snippsat Wrote: (Jul-10-2020, 10:26 AM)steve_shambles Wrote: Feel free to try my Wordpress blog scraper code that I used for my own blog. I wrote t...
steve_shambles Web Scraping & Web Development 7 2,383 Jul-10-2020, 10:18 PM
    Thread: Article Extraction - Wordpress
Post: RE: Article Extraction - Wordpress

Feel free to try my Wordpress blog scraper code that I used for my own blog. I wrote this in 2018 so I don't remember much about how it worked: https://stevepython.wordpress.com/2018/1...og-scraper
steve_shambles Web Scraping & Web Development 7 2,383 Jul-10-2020, 10:26 AM

User Panel Messages

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