@@ -57,7 +57,8 @@ class App:
5757 fwfile = '/usr/local/etc/ts-warp_pf.conf' ,
5858 logfile = '/usr/local/var/log/ts-warp.log' ,
5959 pidfile = '/usr/local/var/run/ts-warp.pid' ,
60- url_new_vesrsion = '' ):
60+ url_new_vesrsion = '' ,
61+ relfile = '' ):
6162
6263 self .password = ''
6364
@@ -226,6 +227,7 @@ class App:
226227 tab_about .rowconfigure (2 , weight = 0 )
227228 tab_about .rowconfigure (3 , weight = 0 )
228229 tab_about .rowconfigure (4 , weight = 1 )
230+ tab_about .rowconfigure (5 , weight = 0 )
229231
230232 style_url = ttk .Style ()
231233 style_url .configure ("URL.TLabel" , foreground = "orange" )
@@ -255,10 +257,21 @@ It is a free and open-source software, but if you want to support it, please do'
255257
256258 ttk .Separator (tab_about , orient = 'horizontal' ).grid (column = 0 , row = 3 , sticky = tk .EW , columnspan = 2 , pady = self ._pady )
257259
260+ release_txt = tk .Text (tab_about , highlightthickness = 0 , state = 'disabled' )
261+ release_txt .grid (column = 0 , row = 4 , columnspan = 2 , sticky = tk .NSEW , pady = self ._pady )
262+ tab_about .bind ("<Visibility>" , self .readfile_ini (release_txt , relfile ))
263+ release_txt .config (state = 'disabled' )
264+ release_txt .see ('1.0' )
265+
266+ scroll_release = ttk .Scrollbar (tab_about , orient = tk .VERTICAL )
267+ scroll_release .grid (column = 2 , row = 4 , sticky = tk .NSEW , pady = self ._pady )
268+ scroll_release .config (command = release_txt .yview )
269+ release_txt .config (yscrollcommand = scroll_release .set )
270+
258271 lbl_contact_txt = ttk .Label (tab_about , text = 'Mikhail Zakharov, 2021-2024, BSD-2-Clause license' )
259- lbl_contact_txt .grid (column = 0 , row = 4 , sticky = tk .SW , padx = self ._padx , pady = self ._pady )
272+ lbl_contact_txt .grid (column = 0 , row = 5 , sticky = tk .SW , padx = self ._padx , pady = self ._pady )
260273 lbl_contact_url = ttk .
Label (
tab_about ,
text = '[email protected] ' ,
style = 'URL.TLabel' )
261- lbl_contact_url .grid (column = 1 , row = 4 , sticky = tk .SE , padx = self ._padx , pady = self ._pady )
274+ lbl_contact_url .grid (column = 1 , row = 5 , sticky = tk .SE , padx = self ._padx , pady = self ._pady )
262275 lbl_contact_url .bind ("<Button-1>" , lambda e : webbrowser .open_new (url_contact ))
263276
264277 # -- Status bar ---------------------------------------------------------------------------------------------- #
@@ -527,6 +540,7 @@ if __name__ == "__main__":
527540 logfile = prefix + '/var/log/ts-warp.log'
528541 pidfile = prefix + '/var/run/ts-warp.pid'
529542 actfile = prefix + '/var/spool/ts-warp/ts-warp.act'
543+ relfile = prefix + '/share/ts-warp/CHANGELOG.md'
530544
531545 # Override defaults by gui-warp.ini
532546 try :
@@ -552,4 +566,4 @@ if __name__ == "__main__":
552566
553567 app = App (runcmd = runcmd , daemon_options = daemon_options ,
554568 inifile = inifile , fwfile = fwfile , logfile = logfile , pidfile = pidfile ,
555- url_new_vesrsion = url_new_vesrsion )
569+ url_new_vesrsion = url_new_vesrsion , relfile = relfile )
0 commit comments