Re: [PyQt] PlastiqueStyle issue

2011-09-18 Thread admin

  
  
On 18/09/2011 05:18 م, Tayfun Kayhan wrote:

  

It seems
  there is no QPlastiqueStyle class in PyQt Class Ref,
  whereas there exists one in Qt Class Ref :


http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/classes.html

http://doc.trolltech.com/4.7/qplastiquestyle.html

  
  

I noticed that too, for that I posted my question.
-- 
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
  

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PlastiqueStyle issue

2011-09-18 Thread admin

  
  
On 18/09/2011 04:27 م, Vincent Vande Vyvre wrote:

  
  
  Le 18/09/11 15:19, ad...@mbnoimi.net
  a écrit : Hi,
  
  No specific import is required for style
  
  
      app = QtGui.QApplication(sys.argv)
      app.setStyle(QtGui.QStyleFactory.create("plastique"))

Actually I want to use default palette of Platique style for that
I've to create a new object from QPlastiqueStyle then call
setPallete function as I mentioned below
sty = QPlastiqueStyle()
app.setPalette(sty.standardPalette())




-- 
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
  

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PlastiqueStyle issue

2011-09-18 Thread Vincent Vande Vyvre


  
  
Le 18/09/11 15:19, ad...@mbnoimi.net a écrit :

  
  
  Hi,
  
  
  Where can I find QPlastiqueStyle class?
  
  
  I tried to use
  from PyQt4.QtGui import QPlastiqueStyle
  and
  app.setStyle("Plastique")
sty = QPlastiqueStyle()
app.setPalette(sty.standardPalette())
  but I got import error. what's wrong?
  
  
  
  -- 
Best Regards,
Muhmmad Bashir Al-Noimi
Desktop/Embedded developer
TAIBA SOFT co.
http://taiba-soft.com
Aleppo - Syria
  

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Hi,

No specific import is required for style


    app = QtGui.QApplication(sys.argv)
    app.setStyle(QtGui.QStyleFactory.create("plastique"))

-- 
  Vincent V.V.
  Oqapy . Qarte+7 . PaQager
  


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PlastiqueStyle issue

2011-09-18 Thread admin

  
  
Hi,


Where can I find QPlastiqueStyle class?


I tried to use
from PyQt4.QtGui import QPlastiqueStyle
and
app.setStyle("Plastique")
sty = QPlastiqueStyle()
app.setPalette(sty.standardPalette())
but I got import error. what's wrong?



-- 
Best Regards,
Muhmmad Bashir Al-Noimi
Desktop/Embedded developer
TAIBA SOFT co.
http://taiba-soft.com
Aleppo - Syria
  

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt