Re: [PyQt] Phonon-VLC

2011-09-10 Thread Timothy W. Grove
While I'm experimenting I may have another go at using phonon. How do 
you set the backend to use? just by putting a phonon_backend directory 
in my program's folder?? The important thing for me is the ability to 
send extra commands to the vlc backend such as '--autocrop' or setting 
the playback rate. Can this be done through phonon?


Best regards,
Tim

On 09/09/2011 16:06, emmanuel_mays...@lynceantech.com wrote:

Just out of curiosity, why don't you use phonon?
I currently using mplayer and saw that phonon can now display rtsp streams 
(which I use)
Is there a reason not to use phonon and go with mplayer/vlc?
Regards,
--
Emmanuel

On 14:55 Fri 09 Sep , Timothy W. Grove wrote:

Thanks, I'm giving VLC a try and it seems to be working okay. Probably a
question for the VLC forums (I'll copy a post there in a minute...), but
I don't understand why I can't get autocropping to work. I'm using
"""self.Instance = vlc.Instance("--no-audio", "--play-and-pause",
"--autocrop") """ within my program, and I've tried using the same
arguments on the command line but no joy. Should I be adding any other
arguments to include this filter? I'm using the precompiled version of
vlc.py which came with the Qt bindings; under Windows 7, PyQt4 and
Python 3.2.

MPlayer was also working well embedded into a QWidget, only the
background was destroyed in resizing when paused or stopped as described
in my earlier posting below. I attempted also to take screenshots using
QPixmap.grabWindow() and .grabWidget() but these only return an empty
image. I'd still like to understand this behaviour if anyone has any
ideas. Thanks.

Best regards,
Timothy Grove

On 04/09/2011 13:45, Jo Jürgens wrote:

If you can use VLC instead of Mplayer, there are Python/Qt bindings
for it that seem to work fine

http://wiki.videolan.org/Python_bindings

On Sun, Aug 28, 2011 at 4:27 PM, Timothy W. Grovemailto:tim_gr...@sil.org>>  wrote:

 I've been successful in embedding the MPlayer video player into a
 QWidget thanks to the PyMPlayer application
 (http://code.google.com/p/python-mplayer/). Resizing the QWidget
 resizes a movie just fine while the movie is playing, but once a
 movie is paused or stopped, no resizing of the displayed frame
 occurrs and even worse, if the window size is decreased so that it
 covers the movie, that area of the movie frame is erased. I'm
 wondering if someone could suggest what issues 'might' be involved
 here? Thanks for any ideas!

 Best regards,
 Tim
 ___
 PyQt mailing list PyQt@riverbankcomputing.com
 
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt



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

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


[PyQt] Bug with QButtonGroup in pyuic4

2011-09-10 Thread Vincent Vande Vyvre


  
  
Hi, 

example files attached

Regards

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

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'radio_button.ui'
#
# Created: Sat Sep 10 21:17:17 2011
#  by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(284, 163)
self.gridLayout = QtGui.QGridLayout(Dialog)
self.gridLayout.setObjectName("gridLayout")
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.radioButton = QtGui.QRadioButton(Dialog)
self.radioButton.setText("RadioButton_1")
self.radioButton.setObjectName("radioButton")
self.QtGui.QApplication.translate("Dialog", "buttonGroup", None, QtGui.QApplication.UnicodeUTF8) = QtGui.QButtonGroup(Dialog)
self.QtGui.QApplication.translate("Dialog", "buttonGroup", None, QtGui.QApplication.UnicodeUTF8).setObjectName("QtGui.QApplication.translate(\"Dialog\", \"buttonGroup\", None, QtGui.QApplication.UnicodeUTF8)")
self.QtGui.QApplication.translate("Dialog", "buttonGroup", None, QtGui.QApplication.UnicodeUTF8).addButton(self.radioButton)
self.verticalLayout.addWidget(self.radioButton)
self.radioButton_2 = QtGui.QRadioButton(Dialog)
self.radioButton_2.setText("RadioButton_2")
self.radioButton_2.setObjectName("radioButton_2")
self.QtGui.QApplication.translate("Dialog", "buttonGroup", None, QtGui.QApplication.UnicodeUTF8) = QtGui.QButtonGroup(Dialog)
self.QtGui.QApplication.translate("Dialog", "buttonGroup", None, QtGui.QApplication.UnicodeUTF8).setObjectName("QtGui.QApplication.translate(\"Dialog\", \"buttonGroup\", None, QtGui.QApplication.UnicodeUTF8)")
self.QtGui.QApplication.translate("Dialog", "buttonGroup", None, QtGui.QApplication.UnicodeUTF8).addButton(self.radioButton_2)
self.verticalLayout.addWidget(self.radioButton_2)
self.radioButton_3 = QtGui.QRadioButton(Dialog)
self.radioButton_3.setText("RadioButton_3")
self.radioButton_3.setObjectName("radioButton_3")
self.QtGui.QApplication.translate("Dialog", "buttonGroup", None, QtGui.QApplication.UnicodeUTF8) = QtGui.QButtonGroup(Dialog)
self.QtGui.QApplication.translate("Dialog", "buttonGroup", None, QtGui.QApplication.UnicodeUTF8).setObjectName("QtGui.QApplication.translate(\"Dialog\", \"buttonGroup\", None, QtGui.QApplication.UnicodeUTF8)")
self.QtGui.QApplication.translate("Dialog", "buttonGroup", None, QtGui.QApplication.UnicodeUTF8).addButton(self.radioButton_3)
self.verticalLayout.addWidget(self.radioButton_3)
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)

self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)

def retranslateUi(self, Dialog):
Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))


if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
Dialog = QtGui.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.show()
sys.exit(app.exec_())



radio_button.ui
Description: application/designer
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Camelot 11.09.10 released

2011-09-10 Thread Erik Janssens
Hello,

Camelot 11.09.10 has been released.  This is a stable release with minor
modifications.  The most important change is probably the availability of
API documentation.

Regards,

Erik

Changes :

 * Refresh reexecutes queries in the table view

 * Deleted entities are grayed out in the GUI if they are deleted when
   visible

 * Add setup.py to new projects for easy packaging

 * The settings mechanism becomes plugable

 * Print preview does pdf export when no printer is available

 * Wizard to create a new project

 * API documentation integrated with sphinx

 * UserException, a subclass of Exception that to inform the user in
   a gentle way he should behave different.

 * Reduced memory usage

 * Table views are sorted by primary key to avoid row flicker

 * German, French and Dutch translations

 * Generation of .po files integrated with setuptools

 * Fixes of VirtualAddress editor
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt