I have a bunch of buttons in a button group.
Here is my code:
def Function():
addAppButtonGroup = QButtonGroup()
addAppButtonGroup.addButton(addCustomAppButton)
addAppButtonGroup.addButton(addAppleStoreAppButton)
addAppButtonGroup.addButton(addWebLinkButton)
Le 04/08/11 17:24, Di Zou a crit:
I have a bunch of buttons in a button group.
Here is my code:
def Function():
addAppButtonGroup = QButtonGroup()
Hi i trying set logoimage into cell of QtableWidget
all code runs ok but can't see the image in the table
i try with .gif and .png files
any idea?
heres the code:
./airlines/ (many logosfiles in ABC.gif and ABC.png)
if exist show up ifnot just say the code of aircraft
In data giovedì 04 agosto 2011 11:36:14, Tony Peña ha scritto:
all code runs ok but can't see the image in the table
Did you try using a QLabel without text as item and setting a pixmap there
through setPixmap?
--
Luca Beltrame - KDE Forums team
KDE Science supporter
GPG key ID: 6E1A4E79
Le 04/08/11 18:06, Tony Peña a écrit :
Hi i trying set logoimage into cell of QtableWidget
all code runs ok but can't see the image in the table
i try with .gif and .png files
any idea?
heres the code:
Ohh.. about errors.. ok it is for try excep pass.. sorry for that..
and yes i have use Qlabel with Pixmap in other QWIdgetTab
and works.. i try it with QLabel again
thanxs
2011/8/4 Vincent Vande Vyvre vincent.vandevy...@swing.be
**
Le 04/08/11 18:06, Tony Peña a écrit :
Hi i trying set
To: PyQt Mailing List pyqt@riverbankcomputing.com
Cc:
Bcc:
Subject: Context menu of child widget
Reply-To:
(resent on Qt mailing list)
Hello all,
I am using a composite widget (widget of custom widgets) with a
context menu.
Each of my child widgets has a context menu as well.
I would like
ok nothing yet
i refresh the code again here with QLabel now.. :|
airlineCodePath = './airlines/%s.gif' % code_airline
try:
if os.path.exists(airlineCodePath) is True:
airline = QtGui.QLabel()
Pixmap =
I switched to:
def AddApplication(self, id):
print hi, id
I also removed this:
addAppButtonGroup.setId(addCustomAppButton, 0)
addAppButtonGroup.setId(addAppleStoreAppButton, 1)
addAppButtonGroup.setId(addWebLinkButton, 2)
and it still doesn't work.
My code is based on classes. This is how my code looks right now:
class MyWidget(QWidget):
def __init__(self, parent):
QWidget.__init__(self, parent)
self.Function()
def Function(self):
addAppButtonGroup = QButtonGroup()
On Thursday, August 04, 2011 01:38:10 PM Di Zou wrote:
My code is based on classes. This is how my code looks right now:
def Function(self):
addAppButtonGroup = QButtonGroup()
addAppButtonGroup.addButton(addCustomAppButton)
On Thursday 04 August 2011, 21:45:01 Tony Peña wrote:
ok nothing yet
i refresh the code again here with QLabel now.. :|
airlineCodePath = './airlines/%s.gif' % code_airline
try:
if os.path.exists(airlineCodePath) is True:
airline =
That fixed it. Thanks!
- Original Message -
From: Mike Ramirez gufym...@gmail.com
To: Di Zou di_...@yahoo.com
Cc: pyqt@riverbankcomputing.com
Sent: Thursday, August 4, 2011 4:42 PM
Subject: Re: [PyQt] signal issue with qbuttongroup
On Thursday, August 04, 2011 01:38:10 PM Di Zou wrote:
Bumping thisI'm still getting these warnings on resize events but
otherwise my app seems normal.
BZ
On Fri, Jul 22, 2011 at 12:36 AM, Brian Zambrano bri...@gmail.com wrote:
I'm attempting to use flot, a jquery/javascript plotting library to draw
plots in a QWebView. Everything goes well
14 matches
Mail list logo