Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Issue w/ "With Open"
Post: Issue w/ "With Open"

Hi, I'm using code, similar to this: with open(dbfileA, 'a') as writer: for in_val in userinputs: writer.write("%s" % (in_val)) writer.write("%s" ...
vman44 General Coding Help 3 923 Dec-23-2022, 06:59 AM
    Thread: Tkinter Entry size limit
Post: RE: Tkinter Entry size limit

Thanks everyone. I'll probably try some version of menator's code. It seems silly to me that Python/Tkinter doesn't have this built-in.
vman44 General Coding Help 3 6,763 Dec-22-2022, 06:58 AM
    Thread: Tkinter Entry size limit
Post: Tkinter Entry size limit

I'm writing a program in Tkinter. One page is a form, where the user inputs various values. How do I limit an Entry field to a specific size? For example, I use the following code, so that the user ...
vman44 General Coding Help 3 6,763 Dec-21-2022, 06:50 AM
    Thread: Text Button - How Do I Reduce The Margin?
Post: RE: Text Button - How Do I Reduce The Margin?

It looks like I'm able to get the width thing to work. Thanks, everyone.
vman44 GUI 6 11,306 Apr-27-2020, 06:49 PM
    Thread: Text Button - How Do I Reduce The Margin?
Post: RE: Text Button - How Do I Reduce The Margin?

The width option doesn't work. Here's my code: b = Button(tkt, height=1, width=1, text='J', command=tkt.destroy, bg='#DEDEFF', fg="green") Earlier in my script, I put: # define font myFont = font.Fo...
vman44 GUI 6 11,306 Apr-25-2020, 10:48 PM
    Thread: Text Button - How Do I Reduce The Margin?
Post: Text Button - How Do I Reduce The Margin?

My Python script uses Tkinter. I'm running Python 3.7. The script creates a large # of text buttons next to each other. How do I reduce the margin between the text & the edge of the button? Eve...
vman44 GUI 6 11,306 Apr-25-2020, 04:04 AM
    Thread: Creating an executable
Post: RE: Creating an executable

My script file has the following: ================================= img_folder = 'alpha\\english\\' eng_audio_folder = 'alpha\\english\\audio\\' ..... Later, in my script, as part of a list definition...
vman44 General Coding Help 8 3,596 Apr-19-2020, 08:41 PM
    Thread: pygame error in my clicker game
Post: RE: pygame error in my clicker game

I don't know about the 2nd issue you had, but the following might help you w/ the 1st issue: button1("GO!", intro_button_width1, intro_button_height, 100, 50, green, bright_green, game_loop) ...
vman44 Game Development 2 2,575 Apr-19-2020, 12:38 AM
    Thread: Creating an executable
Post: RE: Creating an executable

buran, Thanks. I've been going through those links & webpages. In the script I wrote, there are 2 folders my script is accessing: ** 'alpha\english\*.png' --> contains image files, in .png f...
vman44 General Coding Help 8 3,596 Apr-19-2020, 12:29 AM
    Thread: Creating an executable
Post: RE: Creating an executable

Sorry for the delay in posting this. Pyinstaller runs w/o giving any errors. The problem is when I run the actual executable file. It says "failed to execute script.py" I tried putting all the imag...
vman44 General Coding Help 8 3,596 Apr-15-2020, 05:54 PM
    Thread: Creating an executable
Post: RE: Creating an executable

Here is the video that stated that pyinstaller cannot be used in Python anymore. The video is in Hindi. Sorry, I don't have the English translation for it. https://www.youtube.com/watch?v=yp1FmtIXG_w...
vman44 General Coding Help 8 3,596 Apr-02-2020, 05:36 PM
    Thread: Creating an executable
Post: Creating an executable

Hi. I'm trying to create an executable file from a Python script. I'm running Python v. 3.7 & Pycharm. I tried "pyinstaller", but that didn't work. I found out later that pyinstaller is no longe...
vman44 General Coding Help 8 3,596 Apr-02-2020, 04:26 AM
    Thread: Pygame - Images As Buttons
Post: RE: Pygame - Images As Buttons

Thanks. I'll check it out.
vman44 Game Development 3 13,030 Mar-20-2020, 08:13 PM
    Thread: Pygame - Images As Buttons
Post: Pygame - Images As Buttons

Hi, I've been trying to develop a game w/ Pygame. One of the items in my game is a "Goodbye" button. This is a png file. The Goodbye image will be placed at a certain location. Let's call it (x1, y...
vman44 Game Development 3 13,030 Mar-20-2020, 02:16 AM
    Thread: Displaying Image Files in a GUI
Post: Displaying Image Files in a GUI

Hello, I have this situation: I'm developing a GUI. This GUI will display an image (png file) from another folder. There will be a button on the GUI to update to a new image. The idea is that there...
vman44 GUI 1 1,794 Mar-01-2020, 10:51 PM
    Thread: import PIL dont work
Post: RE: import PIL dont work

Actually, I don't think it worked. It displayed the png image, but PyCharm stated: "AttributeError: type object 'Image' has no attribute 'open'" Also, how do I display jpg images?
vman44 General Coding Help 14 12,943 Feb-22-2020, 07:00 PM
    Thread: import PIL dont work
Post: RE: import PIL dont work

That worked. Thanks, snippsat.
vman44 General Coding Help 14 12,943 Feb-22-2020, 02:40 AM
    Thread: import PIL dont work
Post: RE: import PIL dont work

I'm having a similar issue. I have Python v.3.7.4 & PyCharm. I uninstalled PIL. I downloaded Pillow. I did the "pip install Pillow" command from the command prompt. However, when I tried running "...
vman44 General Coding Help 14 12,943 Feb-22-2020, 12:00 AM

User Panel Messages

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