Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81121 > unrolled thread

Re: How to access Qt components loaded from file?

Started byJuan Christian <juan0christian@gmail.com>
First post2014-11-20 20:25 +0000
Last post2014-11-20 20:25 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to access Qt components loaded from file? Juan Christian <juan0christian@gmail.com> - 2014-11-20 20:25 +0000

#81121 — Re: How to access Qt components loaded from file?

FromJuan Christian <juan0christian@gmail.com>
Date2014-11-20 20:25 +0000
SubjectRe: How to access Qt components loaded from file?
Message-ID<mailman.16052.1416515128.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

**Back to the list

So, as I said the PyQt doc is using C o.0

Yes, I read the tutorials, I'll google for some books and things related.

On Tue Nov 18 2014 at 10:48:44 AM Vincent Vande Vyvre <
vincent.vande.vyvre@telenet.be> wrote:

> Le 18/11/2014 13:18, Juan Christian a écrit :
> > I have this simple code that load any Qt Designer .UI file:
> >
> > from PySide.QtCore import QFile
> > from PySide.QtGui import QApplication
> > from PySide.QtUiTools import QUiLoader
> >
> >
> > def loadui(file_name):
> > loader = QUiLoader()
> > uifile = QFile(file_name)
> > uifile.open(QFile.ReadOnly)
> > ui = loader.load(uifile)
> > uifile.close()
> > return ui
> >
> >
> > if __name__ == "__main__":
> > import sys
> >
> > app = QApplication(sys.argv)
> > MainWindow = loadui("main.ui")
> > MainWindow.show()
> > app.exec_()
> >
> > Let's say I have a QTextEdit called txtbox. How can I access this
> > txtbox inside my Python code?
> >
> >
> How about MainWindow.txtbox  ?
> --
> https://mail.python.org/mailman/listinfo/python-list
>

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web