Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: self function problem
Post: RE: self function problem

thank you so much.
Agusben General Coding Help 6 2,931 May-08-2020, 05:59 PM
    Thread: self function problem
Post: RE: self function problem

I added self to the graph method and an error pops up. from tkinter import * from tkinter import ttk import turtle from math import cos,sin,tan,pi from threading import Event root = Tk() root.title(...
Agusben General Coding Help 6 2,931 May-08-2020, 02:45 PM
    Thread: self function problem
Post: RE: self function problem

That is not the problem. I keep getting this error and I don't know how to solve it TypeError: graph() missing 1 required positional argument: 'self'
Agusben General Coding Help 6 2,931 May-08-2020, 02:17 PM
    Thread: self function problem
Post: self function problem

I have a problem with a program that uses a button that is created in a self function. from tkinter import * from tkinter import ttk import turtle from math import cos,sin,tan,pi from threading impo...
Agusben General Coding Help 6 2,931 May-08-2020, 12:35 PM
    Thread: self def
Post: self def

I have a problem with a function and the "self" statement. from tkinter import * import turtle from math import cos,sin,pi root = Tk() root.title("Mi app") canvas=turtle.Canvas(master=root, width=65...
Agusben General Coding Help 2 1,578 May-05-2020, 05:28 AM
    Thread: combobox and button
Post: combobox and button

Is there a way to make a button appear after a specific value is selected from a Combobox? I want to make a program that creats differents amounts of buttons and labels depending on the value that was...
Agusben GUI 1 2,238 Apr-29-2020, 12:29 PM
    Thread: combobox
Post: combobox

I have a problem with a Combobox. I want a Label to appear when a specific value is selected in the Combobox. from tkinter import * from tkinter import ttk import turtle from math import cos,sin,ta...
Agusben GUI 1 1,905 Apr-27-2020, 06:04 PM
    Thread: combobox
Post: RE: combobox

Thanks, that was useful. Now I have another problem. I want to create a Label that displays whatever I selected. I try this: if box.get() == "small": chosen_label = Label(root, text="You choose 's...
Agusben GUI 3 2,285 Apr-27-2020, 04:07 AM
    Thread: combobox
Post: combobox

I have a problem with a Combobox. In my program, I want to draw different things depending on what it is selected in the Combobox. from tkinter import * from tkinter import ttk import turtle from m...
Agusben GUI 3 2,285 Apr-26-2020, 02:41 PM
    Thread: make a turtle object an image
Post: make a turtle object an image

i have a program that plots a parametric equation and then saves the drawing to a jpg image file. import turtle from math import cos,sin,tan,pi from datetime import datetime from PIL import Image ...
Agusben General Coding Help 2 12,676 Apr-12-2020, 04:40 PM
    Thread: plotting equations
Post: plotting equations

I have this program that draws a parametric equation import turtle from math import cos,sin,tan,pi window = turtle.Screen() pen = turtle.Turtle() pen.hideturtle() pen.pensize(3) pen.penup() angle ...
Agusben General Coding Help 2 2,050 Apr-06-2020, 12:29 AM
    Thread: general def coding
Post: RE: general def coding

angle = 0 theta = 0.01 steps = int ((100*pi/theta)) for t in range(0,steps): if stop.is_set(): break a = 1 b = 5 c = 6 angle+=theta x=(cos(a*angle)+cos(b*an...
Agusben GUI 5 2,565 Apr-02-2020, 12:12 AM
    Thread: general def coding
Post: RE: general def coding

(Apr-01-2020, 03:33 PM)DeaD_EyE Wrote: Minimal change: from tkinter import * import turtle from math import cos,sin,tan,pi from threading import Event root = Tk() stop = Event() def graph (): ...
Agusben GUI 5 2,565 Apr-01-2020, 06:27 PM
    Thread: break for loop
Post: break for loop

can i break a foor loop from outside the loop?
Agusben General Coding Help 1 1,911 Apr-01-2020, 03:02 PM
    Thread: general def coding
Post: general def coding

from tkinter import * import turtle from math import cos,sin,tan,pi root = Tk() def graph (): pen.penup() angle = 0 theta = 0.01 steps = int ((100*pi/theta)) for t in range(0,steps): ...
Agusben GUI 5 2,565 Apr-01-2020, 02:55 PM
    Thread: general def coding
Post: general def coding

from tkinter import * import turtle from math import cos,sin,tan,pi root = Tk() def graph (): pen.penup() angle = 0 theta = 0.01 steps = int ((100*pi/theta)+1) def stop(): stop_button=...
Agusben GUI 1 1,880 Apr-01-2020, 06:14 AM

User Panel Messages

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