def __init__( self, app, parent, path, prop_dict ):
super().__init__( parent )
self.path = path
self.prop_dict = prop_dict
self.grid = QtWidgets.QGridLayout()
self.grid.setColumnStretch( 1, 1 )
self.property_ctrls = {}
self.initKnownProperties()
for prop in sorted( self.prop_dict ):
if( prop not in self.known_properties_names
and prop not in self.ignore_properties_names ):
self.property_ctrls[ prop ] = SinglePropertyText( self, prop, True, self.prop_dict[ prop ] )
self.new_name_ctrl = QtWidgets.QLineEdit( '' )
self.new_value_ctrl = QtWidgets.QLineEdit( '' )
self.addRow( self.new_name_ctrl, self.new_value_ctrl )
self.buttons = QtWidgets.QDialogButtonBox()
self.buttons.addButton( self.buttons.Ok )
self.buttons.addButton( self.buttons.Cancel )
self.buttons.accepted.connect( self.accept )
self.buttons.rejected.connect( self.reject )
self.grid.addWidget( self.buttons, self.grid.rowCount(), 0, 2, 1 )
self.setLayout( self.grid )
wb_svn_properties_dialog.py 文件源码
python
阅读 40
收藏 0
点赞 0
评论 0
评论列表
文章目录