เพิ่มใน memo.kv
+ ToolButton:
+ text: 'Setting'
+ background_color: .2,1,1,1
+ on_release: root.show_setting(*args)
เพิ่มใน memo.py
+ def show_setting(self,instance):
+ print("Setting PAGE")
วันอังคารที่ 15 พฤศจิกายน พ.ศ. 2559
Memo : แก้ไข favourite ให้ทำงานถูกต้อง
แก้ไขตอน save favourite
เป็น
fav_txt.write(path_leaf(self.all_file.files[self.index])+",")
จากเดิม
fav_txt.write(","+path_leaf(self.all_file.files[self.index]))
เป็น
fav_txt.write(path_leaf(self.all_file.files[self.index])+",")
จากเดิม
fav_txt.write(","+path_leaf(self.all_file.files[self.index]))
วันอาทิตย์ที่ 13 พฤศจิกายน พ.ศ. 2559
Memo : ใช้งาน favourite ได้แล้ว
เพิ่มฟังก์ชั่น save_favourite เรียกใช้ตอนกดปุ่ม Add to favourite (ในหน้า View)
โดยจะเซฟลงไฟล์ favourite หากไม่ซ้ำกับชื่อไฟล์ใน favourite (มีอยู่ก่อนแล้ว)
โดยจะเซฟลงไฟล์ favourite หากไม่ซ้ำกับชื่อไฟล์ใน favourite (มีอยู่ก่อนแล้ว)
Memo : เพิ่มปุ่ม favourtie
ToolButton:
text: 'Favourite'
background_color: 1,1,.5,1
on_release: root.favourite()
เพิ่มปุ่มใน memo.kv
-------------------------------------------------------
btn_add_fav = Button(text="Add to favourite", size_hint=(1,.1), background_color=(1,1,.5,1))
เพิ่มปุ่มใน memo.py
text: 'Favourite'
background_color: 1,1,.5,1
on_release: root.favourite()
เพิ่มปุ่มใน memo.kv
-------------------------------------------------------
btn_add_fav = Button(text="Add to favourite", size_hint=(1,.1), background_color=(1,1,.5,1))
เพิ่มปุ่มใน memo.py
สมัครสมาชิก:
บทความ (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) ภายในนั...