wechat_press_btn = lv.btn(wechat_screen)
-wechat_press_btn.set_pos(10, 260)
+wechat_press_btn.set_pos(10, 264)
wechat_press_btn.set_size(220, 56)
wechat_press_btn.add_style(style_wechat_btn, lv.PART.MAIN | lv.STATE.DEFAULT)
wechat_press_btn.add_style(style_common_bg_rect_btn_pressed, lv.PART.MAIN | lv.STATE.PRESSED)
wechat_press_label = lv.label(wechat_screen)
wechat_press_label.set_text("请按住说话")
wechat_press_label.set_size(240, 56)
-wechat_press_label.set_pos(0,278)
+wechat_press_label.set_pos(0,282)
wechat_press_label.set_style_text_align(lv.TEXT_ALIGN.CENTER, 0)
wechat_press_label.add_style(style_font_youyuan_20, lv.PART.MAIN | lv.STATE.DEFAULT)
#_btn_label1 = lv.label(wechat_btn)
if value.find("R:") != -1:
self.wechat_list_dict[i]["_btn_label1"].set_size(0, 0)
- self.wechat_list_dict[i]["_btn_label1"].set_pos(35, 8)
+ self.wechat_list_dict[i]["_btn_label1"].set_pos(35, 18)
self.wechat_list_dict[i]["_btn_label1"].set_text(str(self.msg_tmp)+'\"')
elif value.find("S:") != -1:
self.wechat_list_dict[i]["_btn_label1"].set_size(0, 0)
- self.wechat_list_dict[i]["_btn_label1"].set_pos(self.startWidth-78, 8)
+ self.wechat_list_dict[i]["_btn_label1"].set_pos(self.startWidth-78, 18)
self.wechat_list_dict[i]["_btn_label1"].set_text(str(self.msg_tmp)+'\"')
elif value.find("T:") != -1:
self.wechat_list_dict[i]["_btn_label1"].set_size(216, 66)
#_btn_img = lv.img(wechat_btn)
self.wechat_list_dict[i]["_btn_img"].set_size(30, 30)
if value.find("R:") != -1:
- self.wechat_list_dict[i]["_btn_img"].set_pos(5, 0)
+ self.wechat_list_dict[i]["_btn_img"].set_pos(5, 10)
self.wechat_list_dict[i]["_btn_img"].set_src("E:/static/APP/wechat/R_3.png")
elif value.find("S:") != -1:
- self.wechat_list_dict[i]["_btn_img"].set_pos(self.startWidth-50, 0)
+ self.wechat_list_dict[i]["_btn_img"].set_pos(self.startWidth-50, 10)
self.wechat_list_dict[i]["_btn_img"].set_src("E:/static/APP/wechat/S_3.png")
#self.wechat_list_dict[i]["_btn_img"].add_style(style_img, lv.PART.MAIN | lv.STATE.DEFAULT)
self.wechat_list_dict[i]["_btn_img"].clear_flag(lv.obj.FLAG.HIDDEN)
message_full_label = lv.label(message_full_screen)
message_full_label.set_pos(0, 100)
- message_full_label.set_size(240, 40)
+ message_full_label.set_size(240, 50)
message_full_label.set_text("信息已满,是否清除所有?")
message_full_label.set_long_mode(lv.label.LONG.WRAP)
message_full_label.set_style_text_align(lv.TEXT_ALIGN.CENTER, 0)
def done_return(self):
EventMesh.publish("return_prev_screen")
- def done_click(self):
- EventMesh.publish("load_screen", {"screen": "popup"})
def btn1_release(self):
EventMesh.publish("load_screen", {"screen": "main_menu"})