From 154ad7b03c5ac31071c284272dd2b3f5c8205af9 Mon Sep 17 00:00:00 2001 From: piotrj Date: Fri, 1 Mar 2024 19:50:45 +0100 Subject: [PATCH] dialogs layout fix --- src/dialogs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index 3c7123c..a0228fa 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -359,10 +359,10 @@ 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') @@ -370,7 +370,7 @@ def __init__(self,parent,icon,bg_color,pre_show=None,post_close=None,min_width=1 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') @@ -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