@@ -197,9 +197,9 @@ def _init_utils(self):
197
197
198
198
def _init_ctrls (self , parent ):
199
199
wx .Frame .__init__ (
200
- self , id = ID_OBJDICTEDIT , name = 'objdictedit' ,
200
+ self , id = ID_OBJDICTEDIT , name = self . title ,
201
201
parent = parent , pos = wx .Point (149 , 178 ), size = wx .Size (1000 , 700 ),
202
- style = wx .DEFAULT_FRAME_STYLE , title = 'Objdictedit' ,
202
+ style = wx .DEFAULT_FRAME_STYLE , title = self . title ,
203
203
)
204
204
self ._init_utils ()
205
205
self .SetClientSize (wx .Size (1000 , 700 ))
@@ -229,6 +229,8 @@ def _init_ctrls(self, parent):
229
229
self .SetStatusBar (self .HelpBar )
230
230
231
231
def __init__ (self , parent , manager : NodeManager | None = None , filesopen : list [TPath ]| None = None ):
232
+ self .title = f"Object dictionary editor v{ objdictgen .__version__ } "
233
+
232
234
filesopen = filesopen or []
233
235
if manager is None :
234
236
NodeEditorTemplate .__init__ (self , NodeManager (), True )
@@ -323,9 +325,9 @@ def OnCloseFrame(self, event):
323
325
324
326
def RefreshTitle (self ):
325
327
if self .FileOpened .GetPageCount () > 0 :
326
- self .SetTitle (f"Objdictedit - { self .Manager .GetCurrentFilename ()} " )
328
+ self .SetTitle (self . title + f" - { self .Manager .GetCurrentFilename ()} " )
327
329
else :
328
- self .SetTitle ("Objdictedit" )
330
+ self .SetTitle (self . title )
329
331
330
332
def RefreshCurrentIndexList (self ):
331
333
selected = self .FileOpened .GetSelection ()
0 commit comments