Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Coin Flip Program
Post: RE: Coin Flip Program

This line if command.lower() == 'exit' is not needed. You're already testing the condition in the while loop
menator01 General Coding Help 10 13,120 Apr-16-2025, 01:17 PM
    Thread: Has Anyone Used or Is Currently Using SunnyNet? Looking for Feedback!
Post: RE: Has Anyone Used or Is Currently Using SunnyNet...

Quick search says it's a c# library on github https://github.com/TheSnekySnek/SunnyNet
menator01 General Coding Help 3 696 Apr-05-2025, 12:39 AM
    Thread: Help With Displaying Turtle Screen
Post: RE: Help With Displaying Turtle Screen

It is bad practice to do wildcard imports. I recommend doing a tutorial search for turtle.
menator01 General Coding Help 10 1,932 Mar-05-2025, 11:04 PM
    Thread: Simple code not working properly
Post: RE: Simple code not working properly

if not usernames: print('empty list') else: print(usernames)
menator01 General Coding Help 2 635 Feb-28-2025, 06:41 PM
    Thread: best way to learn python
Post: RE: best way to learn python

For me just learning the basics first. Using print, then getting inputs and returning values, learning basic function use and passing arguments and returning values, then creating classes and how to u...
menator01 News and Discussions 4 1,913 Feb-20-2025, 10:59 PM
    Thread: Inserting Python Buttons into KV Files
Post: RE: Inserting Python Buttons into KV Files

Here is an example of creating kivy buttons https://python-forum.io/thread-42326-pos...#pid179292
menator01 General Coding Help 3 695 Feb-19-2025, 07:10 PM
    Thread: Moving flask app to sub folder on live site. Help This is driving me crazy **huh**
Post: RE: Moving flask app to sub folder on live site. H...

Do you have the wsgi module installed and activated on your server? Running local and running on a live server are different.
menator01 Web Scraping & Web Development 1 1,124 Jan-10-2025, 02:11 PM
    Thread: Trying to update label text using a grid button.
Post: RE: Trying to update label text using a grid butto...

All of these will work import tkinter as tk # Define update function - Default text for arg def update_label(arg='New Text'): label.configure(text=arg) label2.config(text='Direct quoted text...
menator01 GUI 7 1,981 Dec-13-2024, 06:34 PM
    Thread: Trying to update label text using a grid button.
Post: RE: Trying to update label text using a grid butto...

Maybe this will help import tkinter as tk # Define update function - Default text for arg def update_label(arg='New Text'): label.configure(text=arg) root = tk.Tk() label = tk.Label(root, text=...
menator01 GUI 7 1,981 Dec-12-2024, 07:22 PM
    Thread: interlinked Comboboxes
Post: RE: interlinked Comboboxes

Modified code to work with database import tkinter as tk from tkinter import ttk import sqlite3 as sq # Create a dict of categories. This could be a query from a table if need be. mydict = {'animal...
menator01 GUI 4 1,311 Dec-11-2024, 07:31 PM
    Thread: Error: cannot mix str with (non-str) arguments
Post: RE: Error: cannot mix str with (non-str) arguments

Please post code using bb tags and not images along with any errors.
menator01 General Coding Help 2 942 Dec-10-2024, 10:07 PM
    Thread: How to get keep information in a loop
Post: RE: How to get keep information in a loop

Here is a quick example of what I think your trying to do. Not fully functional and not tested for errors import tkinter as tk from tkinter import ttk, messagebox import sqlite3 as sq class Database...
menator01 General Coding Help 4 1,038 Dec-10-2024, 09:18 PM
    Thread: How to get keep information in a loop
Post: RE: How to get keep information in a loop

Can you give the table layout from database and some sample data in the table? What should the starting page contain?
menator01 General Coding Help 4 1,038 Dec-10-2024, 07:08 PM
    Thread: interlinked Comboboxes
Post: RE: interlinked Comboboxes

Although I'm using list instead of a database, maybe something like this import tkinter as tk from tkinter import ttk list1 = [i for i in range(1, 5)] list2 = [i for i in range(6, 11)] list3 = [i fo...
menator01 GUI 4 1,311 Dec-10-2024, 04:57 PM
    Thread: Can a windows file be 'remapped' in Linux ?
Post: RE: Can a windows file be 'remapped' in Linux ?

I generally use pathlib for creating paths. System doesn't matter then. from pathlib import Path # will be path of the executing script path = Path(__file__).parent
menator01 General Coding Help 3 1,018 Dec-07-2024, 02:42 AM
    Thread: Is this normal?
Post: RE: Is this normal?

Check the version of python you installed it for. The error is saying it's not installed. Best practice is to create a virtual environment activate it and install there. [Video: https://youtu.be/j-...
menator01 GUI 2 988 Dec-06-2024, 04:40 AM
    Thread: Pixel sized button does not work associated method
Post: RE: Pixel sized button does not work associated me...

This works. On a side not it's better practice to not use globals. You created a class so instead of entry and in the methods/functions global entry you can use self.entry and access the instance vari...
menator01 GUI 7 2,127 Dec-05-2024, 11:42 PM
    Thread: Button creation on Widget
Post: RE: Button creation on Widget

Can you post your code?
menator01 GUI 2 866 Dec-04-2024, 07:16 AM
    Thread: Bright Black Screen Issue in Tkinter GUI Application
Post: RE: Bright Black Screen Issue in Tkinter GUI Appli...

Could you post the code please?
menator01 General Coding Help 2 1,239 Nov-28-2024, 09:48 AM
    Thread: I cannot create a virtual environment on visual studio code using python
Post: RE: I cannot create a virtual environment on visua...

Open a folder with then pust ctrl+shift+p a propt will open start typing venv. Should pull it up before finished typing. select venv select python version and it should install the virtual environment...
menator01 General Coding Help 2 4,340 Nov-27-2024, 02:20 PM

User Panel Messages

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