On Friday 24 December 2010 11:38:30 you wrote:
> On Friday 24 December 2010 09:25:51 you wrote:
> > Le 23/12/2010 22:19, Algis Kabaila a écrit :
> > > On Friday 24 December 2010 04:09:43 Puiseux wrote:
> > >> hello,
> > >> 
> > >> a problem with pyside-uic that gives an empty output
> > >> file with - untitled.ui made by designer (4.6.2)
> > >> - pyside-uic version 0.2.4
> > >> - pyside 1.0
> > >> 
> > >> puis...@puiseux-laptop:~/devel/total/branchePySide/pyMXF
> > >> /q tgu i$ pyside-uic untitled.ui -d
> > >> # -*- coding: utf-8 -*-
> > >> 
> > >> # Form implementation generated from reading ui file
> > >> 'untitled.ui' #
> > >> # Created: Thu Dec 23 18:01:53 2010
> > > 
> > > How did you call the pyside-uic?  Did you issue the
> > > command like
> > > 
> > > pyside-uic untitled.ui>  myoutput.py
> > > 
> > > and found that myoutput.py was an empty file? Or what?
> > > 
> > > OldAl.
> > 
> > I've tried both
> > $ pyside-uic untitled.ui
> > 
> > to obtain (empty) output on stdout
> > and
> > 
> > $ pyside-uic untitled.ui>  untitled.py
> > 
> > untitled.py was also empty, of course
> > Pierre
> 
> Pierre,
> 
> I copied your file, opened it with the Qt Designer, saved it
> still as untitled.ui.  Then ran it in the following dialog:
> 
> ******************************
> a...@supremo:~$ pyside-uic untitled.ui > ui_untitled.py
> a...@supremo:~$ ls ui_untitled.py
> ui_untitled.py
> a...@supremo:~$ ls -l ui_untitled.py
> -rw-r--r-- 1 ak ak 1164 2010-12-24 11:17 ui_untitled.py
> a...@supremo:~$ cat  ui_untitled.py
> # -*- coding: utf-8 -*-
> 
> # Form implementation generated from reading ui file
> 'untitled.ui'
> #
> # Created: Fri Dec 24 11:17:06 2010
> #      by: PySide uic UI code generator
> #
> # WARNING! All changes made in this file will be lost!
> 
> from PySide import QtCore, QtGui
> 
> class Ui_Form(object):
>     def setupUi(self, Form):
>         Form.setObjectName("Form")
>         Form.resize(400, 300)
>         self.pushButton = QtGui.QPushButton(Form)
>         self.pushButton.setGeometry(QtCore.QRect(60, 40, 99,
> 27))
>         self.pushButton.setObjectName("pushButton")
>         self.label = QtGui.QLabel(Form)
>         self.label.setGeometry(QtCore.QRect(60, 160, 67, 17))
>         self.label.setObjectName("label")
> 
>         self.retranslateUi(Form)
>         QtCore.QMetaObject.connectSlotsByName(Form)
> 
>     def retranslateUi(self, Form):
>        
> Form.setWindowTitle(QtGui.QApplication.translate("Form",
> "Form", None, QtGui.QApplication.UnicodeUTF8))
>        
> self.pushButton.setText(QtGui.QApplication.translate("Form",
> "PushButton", None, QtGui.QApplication.UnicodeUTF8))
> self.label.setText(QtGui.QApplication.translate("Form",
> "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
> 
> a...@supremo:~$ pyside-uic --version
> Python User Interface Compiler version 0.2.3 for PySide
> a...@supremo:~$
> ******************************
> 
> So I do get a respectable looking Python file.  From what I
> see the differences are that my Python file is named by a
> different name than the source file (that should not matter
> IMO) and my utilities version is 0.2.3 whilst yours is
> 0.2.4.  That SHOULD not matter, either.
> 
> Try some of the very simple examples that I suggested from
> http://developer.qt.nokia.com/wiki/PySide_Newbie_Tutorials.
> Just one will do - say
> http://developer.qt.nokia.com/wiki/PySideSimplicissimusCloseB
> utton
> 
> If that  looks too complex, just write back with a name for
> your "untitled" with a description of what you wanted it to
> display and I will endeavour to make a solved  example from
> it for you and for other newbies.
> 
> OldAl.
Inadvertently failed to address to the list.

OldAl.
-- 
Algis
http://akabaila.pcug.org.au
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to