line 25 h = Button(f1, text="<h></h>", padx=10, pady=20, bg="orange", command= Lambda: swap(f2)).grid(row=0, column=1) SyntaxError: invalid synta

Статус
Закрыто для дальнейших ответов.

_HAPPY_

Новичок
Пользователь
Апр 9, 2020
23
1
3
Python:
import _ast
from _ast import *
import pyautogui as pg
import tkinter as tk
from tkinter import *
#pg.hotkey("winlef", "r")
#pg.write(way)
win = tk.Tk()
win.title("think later")

f1 = Frame(win)
f2 = Frame(win)
f3 = Frame(win)

def swap(frame):
    frame.tkraise()

for frame in (f1, f2, f3):
    frame.grid(row = 0, column = 0)

BAZA = Button(f1, text="BASE", padx=20, pady=20, bg="orange",).grid(row=0, column=0)
#for the H do the separate window
h = Button(f1, text="<h></h>", padx=10, pady=20, bg="orange", command= Lambda: swap(f2)).pack(row=0, column=1)
p = Button(f1, text="<p></p>", padx=10, pady=20, bg="orange",).grid(row=0, column=2)
#for the li do the separate window
li = Button(f1, text="<li>", padx=22, pady=20, bg="orange",).grid(row=1, column=0)
propusk = Button(f1, text="<PASS>", padx=14, pady=20, bg="orange",).grid(row=1, column=1)
propusk1 = Button(f1, text="<PASS>", padx=14, pady=20, bg="orange",).grid(row=1, column=2)

propusk2 = Button(f2, text="<PASS>", padx=14, pady=20, bg="orange",).grid(row=1, column=1)
BACK = Button(f2, text="BACK", padx=14, pady=20, bg="orange", command= Lambda: swap(f1)).pack(row=0, column=0)

f1.tkraise()
mainloop()
 

_HAPPY_

Новичок
Пользователь
Апр 9, 2020
23
1
3
уже не надо
 
Статус
Закрыто для дальнейших ответов.

Форум IT Специалистов