[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Adding a table to GUI in QT Designer
From: Nader Abedrabbo <aenader1 () yahoo ! com>
Date: 2011-08-24 14:06:48
Message-ID: 32326763.post () talk ! nabble ! com
[Download RAW message or body]
Thanks Tony.
I was able to add a context menu to the table with the functionality I need
and now can Cut&Paste from excel to my code with no problems.
One issue I still have is that I have 4 tabs in my program and each tab has
its own table. In order to cut and paste to the correct table (with its
associated name) I am having to re-write the code for each table
individually, which I know is redundant and bad programming, but I don't
know a way around it.
To solve this problem, is there a way for the program to:
1. Track the location of the mouse in the program and when it is located
ONLY over a table to activate the QMenu context menu;
2. When it is located over a certain table to report the name of that table
back?
That way I could simplify my code.
Thanks,
Nader Abedrabbo
yes it's possible to do that... read about QMenu classes to do the right
click and
maybe visit here to other examples
http://www.rkblog.rk.edu.pl/w/p/python/#3
2011/8/22 Nader Abedrabbo <aenader1@yahoo.com>
>
--
View this message in context: \
http://old.nabble.com/Adding-a-table-to-GUI-in-QT-Designer-tp32313584p32326763.html \
Sent from the PyQt mailing list archive at Nabble.com.
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic