summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
340a82f)
Introduce loadIcon() method to the SalomePyQt Python interface
PYHELLO.png \
PYHELLO_small.png \
ExecPYHELLO.png \
PYHELLO.png \
PYHELLO_small.png \
ExecPYHELLO.png \
+ handshake.png \
+ stop.png \
SalomeApp.xml
# VSR: little trick to avoid putting if PYHELLOCatalog.xml to the distribution archive
SalomeApp.xml
# VSR: little trick to avoid putting if PYHELLOCatalog.xml to the distribution archive
hb1 = QHBoxLayout( self )
bOk = QPushButton( "&OK", self )
hb1 = QHBoxLayout( self )
bOk = QPushButton( "&OK", self )
+ bOk.setIcon( sgPyQt.loadIcon( 'PYHELLO', 'ICO_HANDSHAKE' ) )
self.connect( bOk, SIGNAL( 'clicked()' ), self, SLOT( 'accept()' ) )
hb1.addWidget( bOk )
hb1.addStretch( 10 )
bCancel = QPushButton( "&Cancel", self )
self.connect( bOk, SIGNAL( 'clicked()' ), self, SLOT( 'accept()' ) )
hb1.addWidget( bOk )
hb1.addStretch( 10 )
bCancel = QPushButton( "&Cancel", self )
+ bCancel.setIcon( sgPyQt.loadIcon( 'PYHELLO', 'ICO_STOP' ) )
self.connect( bCancel, SIGNAL( 'clicked()' ), self, SLOT( 'close()' ) )
hb1.addWidget( bCancel )
self.connect( bCancel, SIGNAL( 'clicked()' ), self, SLOT( 'close()' ) )
hb1.addWidget( bCancel )
See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-->
See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-->
+<TS version="1.1">
+<context>
+ <name>@default</name>
+ <message>
+ <source>ICO_HANDSHAKE</source>
+ <translation>handshake.png</translation>
+ </message>
+ <message>
+ <source>ICO_STOP</source>
+ <translation>stop.png</translation>
+ </message>
+</context>
+</TS>