Stack_overflow

 Steck Overflow

https://stackoverflow.com/


import Tkinter
from Tkconstants import *

tk = Tkinter.Tk()


class MyApp:

    def __init__(self,parent):

        self.frame = Tkinter.Frame(tk,relief=RIDGE,borderwidth=2)
        self.frame.pack()

        self.message = Tkinter.Message(tk,text="Symbol Disolay")

        label=Tkinter.Label(self.frame,text="Is Symbol Displayed")
        label.pack()

        self.button1=Tkinter.Button(self.frame,text="YES")
        self.button1.pack(side=BOTTOM)
        self.button1.bind("<Button-1>", self.button1Click)

        self.button2=Tkinter.Button(self.frame,text="NO")
        self.button2.pack()
        self.button2.bind("<Button-1>", self.button2Click)


    def button1Click(self, event):
            "pressed yes"

    def button2Click(self, event):
            "pressed no"

myapp = MyApp(tk)
tk.mainloop()
Stack_overflow Stack_overflow Reviewed by Uthid on พฤศจิกายน 23, 2563 Rating: 5

ไม่มีความคิดเห็น:

ARduino ep2

  CH1 เริ่มต้นกับ depaAgBoard   Bookmark this page บทที่1 เริ่มต้นกับ depaAg Board แนะนำพื้นฐาน โมดูล ESP32 บน depaAg Board  สวัสดีครับ วันน...

ขับเคลื่อนโดย Blogger.