style(HDMI-Tool): 串口下拉贯通卡片宽度; 参数行补全 8-N-1(板卡固件固定标注)
This commit is contained in:
@@ -272,11 +272,11 @@ class App(ctk.CTk):
|
|||||||
row1 = ctk.CTkFrame(c, fg_color='transparent')
|
row1 = ctk.CTkFrame(c, fg_color='transparent')
|
||||||
row1.pack(fill='x')
|
row1.pack(fill='x')
|
||||||
self._dlpc_ports = dlpc_rs485.DLPC485.list_ports_info()
|
self._dlpc_ports = dlpc_rs485.DLPC485.list_ports_info()
|
||||||
self.cbo_dlpc = ctk.CTkComboBox(row1, width=250, state='readonly',
|
self.cbo_dlpc = ctk.CTkComboBox(row1, state='readonly',
|
||||||
values=[lb for _d, lb in self._dlpc_ports])
|
values=[lb for _d, lb in self._dlpc_ports])
|
||||||
if config.SERIAL_CFG['port']:
|
if config.SERIAL_CFG['port']:
|
||||||
self._dlpc_pick(config.SERIAL_CFG['port'])
|
self._dlpc_pick(config.SERIAL_CFG['port'])
|
||||||
self.cbo_dlpc.pack(side='left')
|
self.cbo_dlpc.pack(side='left', fill='x', expand=True)
|
||||||
ctk.CTkButton(row1, text='刷新', width=64,
|
ctk.CTkButton(row1, text='刷新', width=64,
|
||||||
command=self._dlpc_refresh).pack(side='left', padx=(6, 0))
|
command=self._dlpc_refresh).pack(side='left', padx=(6, 0))
|
||||||
self.btn_dlpc = ctk.CTkButton(row1, text='连接', width=72,
|
self.btn_dlpc = ctk.CTkButton(row1, text='连接', width=72,
|
||||||
@@ -289,6 +289,8 @@ class App(ctk.CTk):
|
|||||||
values=('115200', '57600', '38400', '9600'))
|
values=('115200', '57600', '38400', '9600'))
|
||||||
self.cbo_baud.set(str(config.SERIAL_CFG['baud']))
|
self.cbo_baud.set(str(config.SERIAL_CFG['baud']))
|
||||||
self.cbo_baud.pack(side='left', padx=6)
|
self.cbo_baud.pack(side='left', padx=6)
|
||||||
|
ctk.CTkLabel(row2, text='数据位 8 · 校验 N · 停止位 1(板卡固件固定)',
|
||||||
|
text_color='gray50').pack(side='left', padx=(0, 6))
|
||||||
self.lbl_dlpc_st = ctk.CTkLabel(row2, text='未连接', text_color='gray60')
|
self.lbl_dlpc_st = ctk.CTkLabel(row2, text='未连接', text_color='gray60')
|
||||||
self.lbl_dlpc_st.pack(side='left', padx=6)
|
self.lbl_dlpc_st.pack(side='left', padx=6)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user