วันศุกร์ที่ 4 พฤศจิกายน พ.ศ. 2559
Memo: เปลี่ยนฟอนต์ของ popup ให้เป็น THSarabun
เข้าไปแก้ไข ส่วนของ create_popup ใน
memo.py
editor.py
delete.py
ด้วยการเพิ่มคำสั่ง title_font='./font/THSarabunNew',
title_size=20,
memo.py
editor.py
delete.py
ด้วยการเพิ่มคำสั่ง title_font='./font/THSarabunNew',
title_size=20,
วันอังคารที่ 1 พฤศจิกายน พ.ศ. 2559
Memo : Edit
สร้างไฟล์ Edtior.kv โดยใช้เป็น AnchorLayout
![]() |
| method สร้าง popup โดย ปุ่ม save จะ bind กับ method self.save ( เมื่อกดปุ่ม save จะเรียกใช้ method self.save) |
| method เมื่อกดปุ่ม edit ใน Editor.py (เช็คว่ามีการเลือกไหม) |
![]() |
| ถูกเรียกจาก method show_edit (รูปบน) ใน Editor.py |
เมื่อเลือกไฟล์แล้วกด Edit
จะขึ้น Popup โดยใน popup มี textbox ที่มีเนื้อหาในไฟล์ที่เลือกอยู่แล้ว พอแก้ไขเสร็จให้กด Save จะเรียกใช้ method self.save
reference
การทำ path ให้เหลือชื่อไฟล์อย่างเดียว
สมัครสมาชิก:
บทความ (Atom)
commit เพิ่มเติม : เพื่ม userstory, bookmark
>> add userstory ทำการเพิ่ม userstory ใน functional tests >> add bookmark for user เพิ่มระบบ Bookmark โดยการสร้าง model ขึ...
-
1 2 3 4 5 6 7 8 9 def setup (): print (d2b( 8 )) def d2b (num): x = "" while num > 0 : x = str ( int (n...
-
1 2 3 4 5 6 7 8 9 10 11 12 13 def test_layout_and_styling ( self ): # Edith goes to the home page self . brow...
-
การใช้ template inheritence คือการสืบทอดเทมเพลต เพื่อให้ไม่ต้องเขียนโค้ดหน้าเว็บๆซ้ำๆ เราจะมีหน้าหลักอันเดียว (base.html or parent) ภายในนั...


