คำสั่ง import tkinter as tk มีหน้าที่อะไรในโปรแกรม?

แบบประเมินหลังเรียน-โมดูล Tkinter

Quiz
•
Computers
•
9th Grade
•
Hard
PUNTIPA TIRA
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ลบโมดูล tkinter ออกจากระบบ
เรียกใช้งานโมดูล tkinter และตั้งชื่อย่อเป็น tk
สร้างหน้าต่างหลักโดยอัตโนมัติ
ใช้สำหรับรับข้อมูลจากผู้ใช้
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
คำสั่ง m = tk.Tk() ใช้สำหรับอะไร?
สร้างปุ่มในหน้าต่าง
สร้างหน้าต่างหลัก
แสดงข้อความในหน้าต่าง
ปิดหน้าต่างที่สร้างขึ้น
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
คำสั่ง m.title('Main window') มีหน้าที่อะไร?
กำหนดชื่อของวิดเจ็ต
กำหนดชื่อของปุ่มในหน้าต่าง
กำหนดชื่อของหน้าต่างหลัก
แสดงข้อความในปุ่ม
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
คำสั่ง m.mainloop() มีหน้าที่อะไรใน tkinter?
ปิดหน้าต่างหลัก
เรียกใช้หน้าต่างหลักให้แสดงผลและรอการโต้ตอบจากผู้ใช้
สร้างหน้าต่างใหม่
ลบหน้าต่างที่สร้างไว้
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
หากต้องการเพิ่มปุ่มที่มีข้อความ "Stop" ลงในหน้าต่างหลัก คำสั่งใดถูกต้อง?
button = tk.Button(m, text='Stop')
button = tk.Label(m, text='Stop')
button = tk.Text(m, text='Stop')
button = tk.Widget(m, text='Stop')
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
คำสั่ง button.pack() ใช้ทำอะไร?
ลบปุ่มออกจากหน้าต่าง
จัดตำแหน่งปุ่มให้อยู่ในหน้าต่าง
เปลี่ยนข้อความในปุ่ม
สร้างปุ่มใหม่ในหน้าต่าง
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ในคำสั่ง command=lambda: m.destroy(), ฟังก์ชัน m.destroy() มีหน้าที่อะไร?
สร้างหน้าต่างใหม่
ปิดหน้าต่างหลัก
รีเฟรชหน้าต่าง
เพิ่มปุ่มใหม่ลงในหน้าต่าง
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Microbit

Quiz
•
9th - 12th Grade
10 questions
ไมโครบิต

Quiz
•
9th - 12th Grade
10 questions
หน่วยที่ 1 ความรู้พื้นฐานเกี่ยวกับเว็บไซต์

Quiz
•
9th - 12th Grade
10 questions
หน่วยที่ 1 การพัฒนาแอปพลิเคชัน ม.3

Quiz
•
9th Grade
10 questions
scratch

Quiz
•
7th - 10th Grade
10 questions
คอมพิวเตอร์ ม.3

Quiz
•
9th Grade
10 questions
แบบทดสอบก่อนเรียน Kidbright

Quiz
•
9th Grade
10 questions
Microsoft Word

Quiz
•
3rd - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University