Ответы
Ответ дал:
0
import tkinter as tk
from tkinter import ttk
class FigureBuilderApp(tk.Tk):
def__init__(self):
super._ _init__0
self.title ("Figure Builder")
# Add input field for coordinate pairs
self.coord_input = ttk.Entry (self)
self.coord_input.pack()
# Add build button
self.build_button = ttk. Button(self, text="Побудувати", command=self.build_figure) self.build _button.pack()
def build _figure (self:
# Parse input coordinates
coord _pairs = self.coord _ input.get().split(" .")
coords = [(int (coord_pairs[i]), int(coord _pairs[i+1])) for i in range(0, len (coord _pairs), 2)]
# Calculate and display figure
figure = calculate_figure (coords)
display_figure(figure)
daf raleulato finniralenordel.
from tkinter import ttk
class FigureBuilderApp(tk.Tk):
def__init__(self):
super._ _init__0
self.title ("Figure Builder")
# Add input field for coordinate pairs
self.coord_input = ttk.Entry (self)
self.coord_input.pack()
# Add build button
self.build_button = ttk. Button(self, text="Побудувати", command=self.build_figure) self.build _button.pack()
def build _figure (self:
# Parse input coordinates
coord _pairs = self.coord _ input.get().split(" .")
coords = [(int (coord_pairs[i]), int(coord _pairs[i+1])) for i in range(0, len (coord _pairs), 2)]
# Calculate and display figure
figure = calculate_figure (coords)
display_figure(figure)
daf raleulato finniralenordel.
Вас заинтересует
3 месяца назад
3 месяца назад
3 месяца назад
7 лет назад