Beispiel #1
0
 def __init__(self,
              parent=None,
              storage=None,
              preview_width=100,
              preview_height=100,
              **kwargs):
     self.preview_width = preview_width
     self.preview_height = preview_height
     FileEditor.__init__(self, parent=parent, storage=storage, **kwargs)
Beispiel #2
0
 def __init__(self,
              parent=None,
              storage=None,
              preview_width=100,
              preview_height=100,
              field_name='image',
              **kwargs):
     self.preview_width = preview_width
     self.preview_height = preview_height
     FileEditor.__init__(self, parent=parent, storage=storage, **kwargs)
     self.setObjectName(field_name)
Beispiel #3
0
 def __init__(
         self,
         parent=None,
         storage=None,
         preview_width=100,
         preview_height=100,
         **kwargs
     ):
     self.preview_width = preview_width
     self.preview_height = preview_height
     FileEditor.__init__(
         self, parent=parent, storage=storage, **kwargs
     )
Beispiel #4
0
 def __init__( self,
               parent=None,
               storage=None,
               preview_width=100,
               preview_height=100,
               field_name = 'image',
               **kwargs ):
     self.preview_width = preview_width
     self.preview_height = preview_height
     FileEditor.__init__(
         self, parent=parent, storage=storage,
         **kwargs
     )
     self.setObjectName( field_name )