diff --git a/interface/ri_inst_tk.py b/interface/ri_inst_tk.py index 130e978..9b85af2 100644 --- a/interface/ri_inst_tk.py +++ b/interface/ri_inst_tk.py @@ -66,34 +66,30 @@ lab_progress_bar=Label(root,text='%s:'%(language=="chinese" and u"进度" \ lab_operation=Label(root,text="") lab_linx=Label(root,text="Linx") -txt_suboperation=Text(root,width=70,height=10) +txt_suboperation=Text(root,width=100,height=10) #operation lable and taskname -lab_task.grid (row=1, column=0, sticky='SEW') -lab_operation.grid (row=1, column=1, columnspan=2,sticky="S") -txt_suboperation.grid(row=2, column=1,columnspan=2) -lab_progress_bar.grid(row=3, column=0, sticky='NEW') -lab_linx.grid (row=4, column=1, sticky='E') +lab_task.grid (row=1, column=0, sticky='E') +lab_operation.grid (row=1, column=1, sticky='') +txt_suboperation.grid(row=2, column=1) +lab_progress_bar.grid(row=3, column=0) +lab_linx.grid (row=4, column=1, sticky='') #logo photo_bm = PhotoImage(file="%s/../data/linxlogo.gif"\ %os.path.split(os.path.realpath(__file__))[0]) logo_label=Label(root,image=photo_bm) -logo_label.grid(row=0,column=0,padx=50,pady=50,sticky='NW') +logo_label.grid(row=0,column=0,padx=50, pady=50, sticky='NW') #progress bar scl_progress=Scale(root,orient=HORIZONTAL,resolution=0.01,digits=4,from_=0,to=100,variable=stringvar_bar,label='%') -scl_progress.grid(row=3,column=1,columnspan=2,sticky='NEW') +scl_progress.grid(row=3,column=1,padx=50, sticky='NEW') #root root.rowconfigure(0,weight=1) root.rowconfigure(1,weight=1) -root.rowconfigure(2,weight=1) root.rowconfigure(3,weight=1) root.rowconfigure(4,weight=1) -root.columnconfigure(0,weight=1) root.columnconfigure(1,weight=1) -root.columnconfigure(2,weight=1) -root.columnconfigure(3,weight=1)