Код: Выделить всё
import turtle
tina = turtle.Turtle()
tina.shape("turtle")
# promt user for color and make turtle that color
turtle_color = input("What color should tina the turtle be?")
tina.color(turtle_color)
# promt user for background color and makes it that color
myscreen = turtle.Screen()
background_color = input("What color should background be?")
myscreen.bgcolor(background_color)
это код для кнопки tkinter:
Код: Выделить всё
from tkinter import *
master = Tk()
e = Entry(master)
e.pack()
e.focus_set()
def callback():
print e.get() # This is the text you may want to use later
b = Button(master, text = "OK", width = 10, command = callback)
b.pack()
mainloop()
Поэтому я просто хотел знать, как их объединить
под объединением я имею в виду кнопку tkinter и поле ввода на одной стороне черепахи
ответ все еще принят.. спасибо
Подробнее здесь: https://stackoverflow.com/questions/634 ... create-pai
Мобильная версия