Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Multimode imports fine as script but not after compiling into exe
Post: Multimode imports fine as script but not after com...

Hi guys! I have a program I have been working on for a few months now and it runs fine in Pycharm as a script. However, after I use auto_py_to_exe to build it (which has worked before) I get this mes...
chesschaser General Coding Help 0 532 Aug-13-2020, 01:28 PM
    Thread: ZIP file in Sqlite3 database
Post: RE: ZIP file in Sqlite3 database

I've figured it out!
chesschaser General Coding Help 4 1,029 Jul-23-2020, 09:53 PM
    Thread: ZIP file in Sqlite3 database
Post: RE: ZIP file in Sqlite3 database

I don't want to store the contents. I want to store the actual Zip file ZipFile doesn't support rb.
chesschaser General Coding Help 4 1,029 Jul-23-2020, 02:32 PM
    Thread: ZIP file in Sqlite3 database
Post: ZIP file in Sqlite3 database

Hi guys, I want to convert a ZIP file into binary through Python so I can put in a Sqlite3 database with the type BLOB. I have Googled how you do this but I only found this https://pynative.com/pyth...
chesschaser General Coding Help 4 1,029 Jul-23-2020, 02:19 PM
    Thread: Invert Pillow image colours
Post: RE: Invert Pillow image colours

ok.......
chesschaser General Coding Help 5 873 Jul-11-2020, 02:59 PM
    Thread: Invert Pillow image colours
Post: RE: Invert Pillow image colours

It didn't work for me. It said it doesn't work for this type of image. And I want it to work with all of them. PNG, JPG, you name it. So, I want to do it my way with the pixel tuples. How do I convert...
chesschaser General Coding Help 5 873 Jul-11-2020, 02:27 PM
    Thread: Invert Pillow image colours
Post: Invert Pillow image colours

Hi guys! I've been trying to invert the pixel colours of an image of Harry Potter for about 2 days now. I have a list of RGB tuples that make up each pixel of the image. I want to convert each of tho...
chesschaser General Coding Help 5 873 Jul-11-2020, 12:58 PM
    Thread: Flatten list sublists
Post: RE: Flatten list sublists

Yeah. I'll try all of these if I need to Thanks a lot everyone! My program is fixed!
chesschaser General Coding Help 8 978 Jul-07-2020, 11:38 AM
    Thread: Flatten list sublists
Post: RE: Flatten list sublists

concat? i don't want to concatenate a string.
chesschaser General Coding Help 8 978 Jul-06-2020, 03:41 PM
    Thread: Flatten list sublists
Post: RE: Flatten list sublists

I'll try that too. Thanks for the help everyone :) It gave an error. :( The class: class SetCategory: def flatten(self, iterable): stack = deque(iterable) while stack: ...
chesschaser General Coding Help 8 978 Jul-06-2020, 02:40 PM
    Thread: Flatten list sublists
Post: RE: Flatten list sublists

Ok. I'll try it It doesn't work. In my real code, the Listbox has some silly object code. Unless I try this ... Hang on
chesschaser General Coding Help 8 978 Jul-06-2020, 01:56 PM
    Thread: Flatten list sublists
Post: Flatten list sublists

Hi guys! I have this list: mylist = ["Hello", ["Hello2", "Hello3"], "Hello4"]However, I want the list to be this instead (don't say just remove the sublist. This is not the real list. Just a test li...
chesschaser General Coding Help 8 978 Jul-06-2020, 01:07 PM
    Thread: Partial using Tkinter function
Post: RE: Partial using Tkinter function

But if I remember right, label.after() didn't do anything. The label.after() method was in a StackOverflow answer and it didn't work. That's why I came here. I tried it. It works. THX!
chesschaser General Coding Help 10 1,741 Jul-03-2020, 03:57 PM
    Thread: Partial using Tkinter function
Post: RE: Partial using Tkinter function

I'll try that But before I do, will that update? Because I remember trying label.after() in the loop before and it not working
chesschaser General Coding Help 10 1,741 Jul-03-2020, 03:19 PM
    Thread: 1_States_Capitals
Post: RE: 1_States_Capitals

Do you not just do: Capitals = {"New York": "NY", "New Mexico": "NM", "Alaska": "A"}
chesschaser General Coding Help 11 1,355 Jul-03-2020, 10:35 AM
    Thread: Partial using Tkinter function
Post: RE: Partial using Tkinter function

It doesn't update. It shows the time but it's like that for eternity Even with my original code it showed the time. It just never updated New code. Error-free, but doesn't update now = datetime...
chesschaser General Coding Help 10 1,741 Jul-03-2020, 10:31 AM
    Thread: Partial using Tkinter function
Post: RE: Partial using Tkinter function

Thanks Still doesn't work
chesschaser General Coding Help 10 1,741 Jul-02-2020, 08:46 PM
    Thread: Partial using Tkinter function
Post: RE: Partial using Tkinter function

But how do I do it with a partial? I'd imagine that would use less memory Thanks for the reply tho In your code, where do you reference the StringVar()?
chesschaser General Coding Help 10 1,741 Jul-02-2020, 05:34 PM
    Thread: Reverse word
Post: RE: Reverse word

Cleaner print(string[::-1])
chesschaser General Coding Help 6 1,787 Jul-02-2020, 04:00 PM
    Thread: Can not get quiz game to work
Post: RE: Can not get quiz game to work

You are missing print before ("that was hard")
chesschaser General Coding Help 3 1,168 Jul-02-2020, 03:56 PM

User Panel Messages

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