Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: method call help
Post: RE: method call help
Google translation
Good morning,
I get a result not which I expect, and I don't know why?
when I call the pricing_mac(self): method of class HardwareGeek(EmployeeHardware): the price does not change,... |
|
Yoriz |
General Coding Help |
6 |
347 |
Feb-19-2023, 03:39 PM |
|
|
Thread: Pandas AttributeError: 'DataFrame' object has no attribute 'concat'
Post: RE: I need help !!!!
The error line 24
df_total = df_total.concat(df)does not match your posted code line 24
df = excel_file.parse(sheet_name = sheet)neither does the next line
df_total = df_total.append(df)DataFrame does... |
|
Yoriz |
General Coding Help |
5 |
353 |
Feb-17-2023, 03:35 PM |
|
|
Thread: Problem with writing an objective oriented python assignment
Post: RE: Problem with writing an objective oriented pyt...
https://python-forum.io/misc.php?action=help&hid=52 Wrote:Homework and No Effort Questions
This forum is focused on education. It exists to help people learn Python. We don’t exist to solve other... |
|
Yoriz |
Homework |
5 |
720 |
Feb-12-2023, 03:14 PM |
|
|
Thread: Take the variable of a cursor class
Post: RE: Take the variable of a cursor class
import tkinter as tk
class CursseurBrightness(tk.Frame):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.pack()
tk.Scale(
self,
... |
|
Yoriz |
GUI |
2 |
410 |
Feb-12-2023, 03:10 PM |
|
|
Thread: Sorting Data Returned From Database
Post: RE: Sorting Data Returned From Database
Moved to homework:
https://python-forum.io/misc.php?action=help&hid=52 Wrote:Homework and No Effort Questions
This forum is focused on education. It exists to help people learn Python. We don’t ex... |
|
Yoriz |
Homework |
9 |
657 |
Feb-11-2023, 03:50 PM |
|
|
Thread: TypeError: 'float' object is not callable #1
Post: RE: TypeError: 'float' object is not callable #1
https://zulko.github.io/moviepy/ref/Vide...ip.fl_time Wrote:fl_time(self, t_func, apply_to=None, keep_duration=False)
Returns a Clip instance playing the content of the current clip but with a modifie... |
|
Yoriz |
General Coding Help |
1 |
304 |
Jan-21-2023, 12:43 AM |
|
|
Thread: How to convert .trc/.txt file into excel using python
Post: RE: How to convert .trc/.txt file into excel using...
You can start by learning the basics https://docs.python.org/3/tutorial/index.html |
|
Yoriz |
Homework |
3 |
889 |
Jan-15-2023, 10:37 PM |
|
|
Thread: Weird behaviour using if statement in python 3.10.8
Post: RE: Wired behavior using if statement in python 3....
1 does not equal 2 so will always be false
The brackets are not required in the if statement,
print(1 == 2)
if 1 == 2:
print("[...]")
print("Ended")Output:False
Ended (Jan-15-2023, 05:03 PM)mikep... |
|
Yoriz |
General Coding Help |
23 |
1,147 |
Jan-15-2023, 05:27 PM |
|
|
Thread: Is there a way to determine if a radio button has been selected?
Post: RE: Radio Buttons
If you have a snippet of code try and make it as complete and runnable as you can so others don't have to.
The following has a function on_button_selected that gets the value of the IntVar that is tie... |
|
Yoriz |
GUI |
5 |
689 |
Jan-15-2023, 05:21 PM |
|
|
Thread: compare and find the nearest element ?
Post: RE: compare and find the nearest element ?
Show the minimal amount of code required to show the problem you require help with.
For instance how do you represent a list of x and y coordinates, how is the x and y of the mouse represented.
What i... |
|
Yoriz |
General Coding Help |
4 |
357 |
Jan-14-2023, 10:22 PM |
|
|
Thread: compare and find the nearest element ?
Post: RE: compare and find the nearest element ?
Please show the code you have created so far in code tags. |
|
Yoriz |
General Coding Help |
4 |
357 |
Jan-14-2023, 09:54 PM |
|
|
Thread: "Name is not defined" when running a class
Post: RE: "Name is not defined" when running a class
If you have made the change, the error now does not match the code
print(self.question)does not match
Error:File "C:\Users/Lenovo/Documents/Python/Examples_book\survey.py", line 13, in show_question
... |
|
Yoriz |
General Coding Help |
6 |
462 |
Jan-12-2023, 11:49 PM |
|
|
Thread: "Name is not defined" when running a class
Post: RE: "Name is not defined" when running a class
Yes that is now correct also self. is missing from responses in the method show_results but that would not cause the error shown.
What is the full error traceback?
Did you make sure you saved survey ... |
|
Yoriz |
General Coding Help |
6 |
462 |
Jan-12-2023, 11:43 PM |
|
|
Thread: "Name is not defined" when running a class
Post: RE: "Name is not defined" when running a class
Need to add self. in front of question in the method show_question |
|
Yoriz |
General Coding Help |
6 |
462 |
Jan-12-2023, 11:16 PM |
|
|
Thread: Sections of the code causes the GUI to freeze. What should I do?
Post: RE: Stuck in function
It's best not to use time.sleep with GUI code or it will interrupt the mainloop from updating and freeze the GUI.
If you want to call something after a duration of time use tkinters after method to ca... |
|
Yoriz |
GUI |
13 |
1,115 |
Jan-08-2023, 11:32 AM |
|
|
Thread: Looping over radio buttons
Post: RE: Looping over radio buttons
You have CTkRadioButton that have the same value
For instance these all share the value "TL"
["Tbol - Lbol", "TL"]
["Tstar - Lint", "TL"]
["Time - Lbol", "TL"]
Also, you have your header label on row ... |
|
Yoriz |
General Coding Help |
8 |
720 |
Jan-07-2023, 01:43 PM |
|
|
Thread: Trying to add data into a shelf from a submit button
Post: RE: Trying to add data into a shelf from a submit ...
Having never actually used shelve myself, I'm not sure what you intend shelve to do.
As it acts like a dictionary I would expect that when you reassign a value to a key it will just overwrite the curr... |
|
Yoriz |
GUI |
8 |
805 |
Jan-06-2023, 10:57 PM |
|
|
Thread: Looping over radio buttons
Post: RE: Looping over radio buttons
self.header = customtkinter.CTkLabel(self, text=self.header_name)
self.header.grid(row=0, column=0, padx=10, pady=10)
self.radio_button_var = customtkinter.StringVar(value="")
self.radio_buttons = []... |
|
Yoriz |
General Coding Help |
8 |
720 |
Jan-06-2023, 06:45 PM |
|
|
Thread: TKinter Not Executing
Post: RE: TKinter Not Executing
The line root.mainloop() is never reached because the code goes into an infinite loop from the while True: up to the time.sleep(10)
If the GUI was to work with this code the time.sleep would freeze t... |
|
Yoriz |
GUI |
3 |
667 |
Jan-05-2023, 11:42 PM |
|
|
Thread: Need to sum up HHMMS AM/PM DD/MM/YYYY and a HH:MM:SS.
Post: RE: Need to sum up HHMMS AM/PM DD/MM/YYYY and a HH...
Using datetime
import datetime
start_string = "08:31:27 PM 01/02/2023"
total_time_string = "01:22:14"
format_string = "%I:%M:%S %p %d/%m/%Y"
start_datetime = datetime.datetime.strptime(start_string,... |
|
Yoriz |
General Coding Help |
3 |
409 |
Jan-04-2023, 08:33 PM |