Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Showing windows after one another
Post: RE: Showing windows after one another

I would just update the window with the data to be displayed. Quick example import tkinter as tk class Window: def __init__(self, parent): parent.geometry('400x400+350+350') pa...
menator01 GUI 4 165 Feb-22-2024, 08:45 PM
    Thread: Help!!
Post: RE: Help!!

You are using print twice. Once in the function and when calling the function. Please use the bbtags when posting code. You should have a look at the help section on how to ask a question. Quick exam...
menator01 General Coding Help 2 135 Feb-22-2024, 11:51 AM
    Thread: Horizontal extension of widgets + frame size adapted to content
Post: RE: Horizontal extension of widgets + frame size a...

Although it doesn't use canvas here is a script I did in another post. Maybe it will help. https://python-forum.io/thread-37738-pos...#pid159704
menator01 GUI 3 151 Feb-21-2024, 03:39 PM
    Thread: sort search results by similarity of characters
Post: RE: sort search results by similarity of character...

Can you give an example of the data structure?
menator01 General Coding Help 5 243 Feb-16-2024, 09:04 PM
    Thread: sort search results by similarity of characters
Post: RE: sort search results by similarity of character...

You can have a look at sort and sorted.
menator01 General Coding Help 5 243 Feb-16-2024, 08:48 PM
    Thread: Syntax error for "root = Tk()"
Post: RE: Syntax error for "root = Tk()"

If you're just wanting to center the window import tkinter as tk def close(): ''' Will close the tkinter window ''' root.destroy() root = tk.Tk() # Get the screen size screensize = root.w...
menator01 General Coding Help 15 808 Jan-28-2024, 06:47 PM
    Thread: TKinter Remove Button Frame
Post: RE: TKinter Remove Button Frame

Edited image using gimp
menator01 GUI 8 581 Jan-16-2024, 12:07 AM
    Thread: __init__() got multiple values for argument 'schema'
Post: RE: __init__() got multiple values for argument 's...

Do you have any code?
menator01 General Coding Help 4 1,010 Jan-02-2024, 09:11 PM
    Thread: How to access values returned from inquirer
Post: RE: How to access values returned from inquirer

Please use bbtags to hold formatting when posting code. What is inquirer?
menator01 General Coding Help 6 527 Dec-26-2023, 09:04 PM
    Thread: 'pip' not recogmnized in windows prompt
Post: RE: 'pip' not recogmnized in windows prompt

These links may help https://stackoverflow.com/questions/4750...s#12476379 https://pip.pypa.io/en/stable/installation/
menator01 General Coding Help 1 309 Dec-21-2023, 09:05 AM
    Thread: openpyxl documentation
Post: RE: openpyxl documentation

duckduckgo search https://openpyxl.readthedocs.io/en/stable/tutorial.html
menator01 General Coding Help 3 433 Dec-19-2023, 11:00 PM
    Thread: Problem with flask on Mac
Post: RE: Problem with flask on Mac

This link allowed me to install without errors https://github.com/PyMySQL/mysqlclient#install
menator01 General Coding Help 13 1,545 Dec-19-2023, 04:22 PM
    Thread: Problem with flask on Mac
Post: RE: Problem with flask on Mac

You may be better off installing pymysql and using that. I'm on ubuntu linux and get the same install problem.
menator01 General Coding Help 13 1,545 Dec-19-2023, 04:16 PM
    Thread: Please Help
Post: RE: Please Help

In you configure function you have a return statement. Pretty sure when that return is executes, anything below will not execute.
menator01 Web Scraping & Web Development 5 580 Dec-19-2023, 04:10 PM
    Thread: super() in class
Post: RE: super() in class

From the docs Quote:There are two typical use cases for super. In a class hierarchy with single inheritance, super can be used to refer to parent classes without naming them explicitly, thus making t...
menator01 General Coding Help 1 327 Dec-19-2023, 12:55 PM
    Thread: problem with print lists
Post: RE: problem with print lists

Please use code tags when posting code. This is hard to read.
menator01 General Coding Help 4 535 Dec-14-2023, 04:27 PM
    Thread: Remove some columns
Post: RE: Remove some columns

Can use the usecols import pandas as pd df = pd.read_csv('test.csv', usecols=[0,1,2,4,6]) print(df)Output Output: Age Sex BMI Region Charges 0 21 male 25.75 northeast 327...
menator01 General Coding Help 4 643 Dec-14-2023, 06:27 AM
    Thread: file open "file not found error"
Post: RE: file open "file not found error"

Here is an example that will print the lines of a text file that is, In a folder in the current working directory, In the current working directory, and up one directory. import os path = os.path.rea...
menator01 General Coding Help 8 768 Dec-13-2023, 01:27 PM
    Thread: file open "file not found error"
Post: RE: file open "file not found error"

You could also try import os path = os.path.realpath(os.path.dirname(__file__)) print(path)Will give the path of the folder the script executed from.
menator01 General Coding Help 8 768 Dec-13-2023, 11:49 AM
    Thread: Remove some columns
Post: RE: Remove some columns

Do you have any code?
menator01 General Coding Help 4 643 Dec-13-2023, 12:48 AM

User Panel Messages

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