def __init__( self, app ):
super().__init__( app, T_('Editor') )
if self.app is None:
self.prefs = None
else:
self.prefs = self.app.prefs.editor
self.editor_program = QtWidgets.QLineEdit( '' )
self.editor_options = QtWidgets.QLineEdit( '' )
if self.prefs is not None:
self.editor_program.setText( self.prefs.program )
self.editor_options.setText( self.prefs.options )
self.browse = QtWidgets.QPushButton( T_('Browse…') )
self.addRow( T_('Editor'), self.editor_program, self.browse )
self.addRow( T_('Editor Options'), self.editor_options )
self.browse.clicked.connect( self.pickEditor )
wb_scm_preferences_dialog.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录