Skip to content

Commit

Permalink
dialogs layout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PJDude committed Mar 1, 2024
1 parent 177d5d9 commit 154ad7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,18 +359,18 @@ def __init__(self,parent,icon,bg_color,pre_show=None,post_close=None,min_width=1
self.area_main.grid_columnconfigure(0, weight=1)

self.cancel_button=Button(self.area_buttons, text='Close', width=14, command=super().hide )
self.cancel_button.pack(side='right', anchor='e',padx=2,pady=5)
self.cancel_button.pack(side='right', anchor='e',padx=2,pady=5,fill='both')

self.copy_button=Button(self.area_buttons, text='Copy', width=14, command=self.clip_copy_message )
self.copy_button.pack(side='right', anchor='w',padx=2,pady=5)
self.copy_button.pack(side='right', anchor='w',padx=2,pady=5,fill='both')

self.find_next_butt=Button(self.area_mark, command=lambda : self.find_next_prev(1), width=1)
self.find_next_butt.pack(side='right', anchor='w',padx=2,pady=5,fill='both')

self.find_info_var=StringVar()
self.find_info_var.set('-/-')
self.find_info_lab=Label(self.area_mark, textvariable=self.find_info_var, width=8,relief='groove',bd=2,bg=self.bg_color)
self.find_info_lab.pack(side='right', anchor='w',padx=2,pady=5,expand=1)
self.find_info_lab.pack(side='right', anchor='w',padx=2,pady=5,expand=1,fill='both')

self.find_prev_butt=Button(self.area_mark, command=lambda : self.find_next_prev(-1), width=1)
self.find_prev_butt.pack(side='right', anchor='w',padx=2,pady=5,fill='both')
Expand Down Expand Up @@ -514,7 +514,7 @@ def __init__(self,parent,icon,bg_color,pre_show=None,post_close=None,min_width=8
self.cancel_button.pack(side='left', anchor='n',padx=5,pady=5)

self.ok_button=Button(self.area_buttons, text='OK', width=14, command=self.ok,image=image, compound='left' )
self.ok_button.pack(side='right', anchor='n',padx=5,pady=5)
self.ok_button.pack(side='right', anchor='n',padx=5,pady=5,fill='both')

self.focus=self.cancel_button

Expand Down

0 comments on commit 154ad7b

Please sign in to comment.