[PySide] animate QStackedLayout?

2012-04-03 Thread Frank Rueter | OHUfx
Hi everyone, I'm very new to Qt/PySide and am wondering if it's possible to add an animation effect to, let's say, QStackedLayout, for when the page changes. I guess it'd something similar to the way the AppStore works. In this example I'd like to see the new button "push" the old button out o

Re: [PySide] animate QStackedLayout?

2012-04-04 Thread Frank Rueter | OHUfx
thanks Tibold, will check it out. On 4/4/12 7:29 PM, Tibold Kandrai wrote: Hey! Try QtAnimation: http://qt-project.org/doc/qt-4.8/animation-overview.html I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. Cheers, Tibold On 04/04/2012 06:46, Frank Rueter | OHUfx wrote

Re: [PySide] animate QStackedLayout?

2012-04-04 Thread Frank Rueter | OHUfx
gt; dirty version is just a possibility to solve your issue, but there are > probably more elegant ways to do so (QtAnimation, QtQuick) with less > overhead. You get the code here: > > http://pastebin.com/BLWdryVa > > I hope, this gives you a rough idea of this possibility! > >

Re: [PySide] Passing parameter from one class to an external function

2012-04-04 Thread Frank Rueter | OHUfx
just indent your "greetings" function so it becomes a method to the "Form" class, then it will work. import sys from PySide.QtCore import * from PySide.QtGui import * class Form(QDialog): def __init__(self, parent=None): QDialog.__init__(self, parent=None) self.edit =

Re: [PySide] Passing parameter from one class to an external function

2012-04-04 Thread Frank Rueter | OHUfx
Not sure if I follow (I'm new to PySide myself). Your "greetings" function is outside the "Form" class, yet it takes the argument "self" and tries to call "self.edit.text()" which is unknown outside of the "Form" class. Hence my suggestion to simply increase the indentation of the function to ma

[PySide] custom table sorting

2012-04-05 Thread Frank Rueter | OHUfx
Hi guys, I'm working on a table that has ItemWidgets (comboBoxes, checkBoxes etc) in some cells and I'm trying to figure out how to write a custom sort behaviour that will enable me to sort the table by columns containing widgets using the respective widgets' current value (e.g. show all rows

Re: [PySide] animate QStackedLayout?

2012-04-05 Thread Frank Rueter | OHUfx
tp://qt-project.org/doc/qt-4.8/animation-overview.html I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. Cheers, Tibold On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: Hi everyone, I'm very new to Qt/PySide and am wondering if it's possible to add an animation effect

Re: [PySide] animate QStackedLayout?

2012-04-05 Thread Frank Rueter | OHUfx
I think I found the problem in the fact that it's an abstract class and not meant to be used directly. the joy of learning new stuff On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: Thanks again for this tip Tibold. It seems to be what I'm after, though I just disco

Re: [PySide] animate QStackedLayout?

2012-04-06 Thread Frank Rueter | OHUfx
tionGroup if you have special needs. :) Cheers, Tibold On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: I think I found the problem in the fact that it's an abstract class and not meant to be used directly. the joy of learning new stuff On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: T

Re: [PySide] animate QStackedLayout?

2012-04-06 Thread Frank Rueter | OHUfx
ms really off, Frank. I am not really getting what you want to do, maybe you can give us the specific purpose of this... What I could imagine is using a QScrollArea, which makes a QGridLayout scrollable. Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: yes, I think I'm starting to get i

Re: [PySide] animate QStackedLayout?

2012-04-06 Thread Frank Rueter | OHUfx
s and sort them with the button. Hope it helps! Aaron Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: yes, I think I'm starting to get it, thanks. So here is a very rough and ugly test using a single animated table (feel free to laugh): http://pastebin.com/PbZ8ismH I am trying to see

Re: [PySide] custom table sorting

2012-04-06 Thread Frank Rueter | OHUfx
en dealing with large datasets I would recommend going for the > true model/view approach with QTableView, QTableModel and > QStyledItemDelegate, but those are more hard to use. > > Cheers > > Sebastian > > > Am 06.04.2012 02:50, schrieb Frank Rueter | OHUfx: >>

Re: [PySide] animate QStackedLayout?

2012-04-07 Thread Frank Rueter | OHUfx
Am 07.04.2012 01:51, schrieb Frank Rueter | OHUfx: I agree, it does seem off, which is why I'm throwing it out here to get some ideas on how to tackle this from more experienced peeps. I will try to clarify what I'm after: The idea is to have a collection of buttons per category, l

Re: [PySide] custom table sorting

2012-04-07 Thread Frank Rueter | OHUfx
Qt examples > (including the model view thingies) translated to python, which helps a > lot and is a good starting point. > > Am 07.04.2012 02:00, schrieb Frank Rueter | OHUfx: >> Hi Sebastian, >> >> thanks again for your help. I couldn't get the sorting to work even &

[PySide] how to sort QTableWidget when cell widgets are used?

2012-04-07 Thread Frank Rueter | OHUfx
Hi everyone, I'm pretty new to QT/Pyside and am trying to create a simple table that has checkboxes and dropdown menus for cell widgets. Now I'm wondering how I could sort the respective columns that contain such widgets (sorting by their respective values). Here is an example of the code I've

Re: [PySide] animate QStackedLayout?

2012-04-09 Thread Frank Rueter | OHUfx
ing to your mail, the second possibility will meet your requirements closer I guess. But the multi-version might be interesting for others: Mutliple pages visible: http://pastebin.com/hW0zeL4P Only one page visible: http://pastebin.com/cjn0UuA9 Easter-greetings Am 07.04.2012 01:51, schr

Re: [PySide] animate QStackedLayout?

2012-04-10 Thread Frank Rueter | OHUfx
comments for better understanding;-)! I also changed the sorting method to show you a possibility to separe checked from unchecked checkboxes. Because I first thought, that multiple pages must be visible at once, I created two versions, but according to your mail, the second possibility will mee

Re: [PySide] custom table sorting

2012-04-10 Thread Frank Rueter | OHUfx
n this book: >>> http://www.qtrac.eu/pyqtbook.html >>> and have a look this ressource: http://www.yasinuludag.com/blog/ >>> also download a version of PyQt, it has all original Qt examples >>> (including the model view thingies) translated to python, which helps

Re: [PySide] animate QStackedLayout?

2012-04-11 Thread Frank Rueter | OHUfx
bility to separe checked from unchecked checkboxes. Because I first thought, that multiple pages must be visible at once, I created two versions, but according to your mail, the second possibility will meet your requirements closer I guess. But the multi-version might be interesting for others:

[PySide] use text as a button / hyperlink?

2012-04-12 Thread Frank Rueter | OHUfx
Hi everyone, anther noob question: I'm wondering what the most elegant way is to use a list of QLabels like a group of QRadioButtons. I am after creating a simple list of labels that will drive how a widget in my UI will be sorted ('date', 'name', 'author', etc). I need to do this cause I don'

Re: [PySide] use text as a button / hyperlink?

2012-04-12 Thread Frank Rueter | OHUfx
print 'I was clicked' On 4/13/12 12:48 PM, Frank Rueter | OHUfx wrote: > Hi everyone, > > anther noob question: > > I'm wondering what the most elegant way is to use a list of QLabels like > a group of QRadioButtons. > I am after creating a simple list of lab

Re: [PySide] use text as a button / hyperlink?

2012-04-13 Thread Frank Rueter | OHUfx
frank On 4/13/12 7:29 PM, Ludo Visser wrote: > On Apr 13, 2012, at 3:27 am, Frank Rueter | OHUfx wrote: > >> I think I found a way but am not quite sure if its' the best way. I >> subclassed QLabel and (re)implemented the mousePressEvent. >> While this seems to work I&

Re: [PySide] use text as a button / hyperlink?

2012-04-13 Thread Frank Rueter | OHUfx
ah, I think the penny just dropped. I thought I need an actual "event" method in my class but I don't, and the event argument for the mousePressEvent simply holds the actual event object. is that correct? On 4/13/12 7:35 PM, Frank Rueter | OHUfx wrote: > Hi Ludo, > >

pyside@qt-project.org

2012-04-13 Thread Frank Rueter | OHUfx
Hi everyone, me again :) I just implemented the tutorial on this page into my code as I needed to be able to copy QPushButtons from one widget to another via Drag&Drop. It all works great, accept for the fact that the original button that I d

pyside@qt-project.org

2012-04-13 Thread Frank Rueter | OHUfx
.setDown() call to see Franks issue platform independent. Lot's of "guesses" and "maybes", but could be the solution... Aaron I guess this is a bug in PySide, which may depend on OS. I do not have this behaviour on win xp with newest Pyside and python 26 On 04/13/

Re: [PySide] use text as a button / hyperlink?

2012-04-13 Thread Frank Rueter | OHUfx
Thanks Aaron. Option one is what I have done for now. On 14/04/12 1:06 AM, Aaron Richiger wrote: > Hello Frank! > > There are at least two ways of doing this: > > - Create your own ClickableLabel and emit your own signal for mouse clicks. > - Create your own HtmlLabel and use the QLabel-Signal: "

pyside@qt-project.org

2012-04-15 Thread Frank Rueter | OHUfx
gh, so any suggestions on how to do this more elegantly would be appreciated. Cheers, frank On 4/14/12 3:40 PM, Frank Rueter | OHUfx wrote: Sweet, the setDown() method was what I needed, thanks! It's a little disapointing that the right and middle mouse click events don't seem to wor

pyside@qt-project.org

2012-04-15 Thread Frank Rueter | OHUfx
yeah, I just liked the name "sloppy click" :) totally agree though, and I guess that's why I was asking for help. I initially tried to read out how far the mouse is moving inside of the mouseMoveEvent but couldn't get it right. I used: setMouseTracking( True ) curPos = event.pos() but curPos is

[PySide] animated fade

2012-04-16 Thread Frank Rueter | OHUfx
Hi guys, I'm currently looking at an example that cross fades two widgets when the respective button is pushed. I have made a slight change to the sample code so that there is a button on each page that is meant to start the cross fade animation back to the other page (and therefore fade out i

Re: [PySide] animated fade

2012-04-16 Thread Frank Rueter | OHUfx
DOH! I had the buttons hooked up back to front, my apologies! Was sitting in front of the computer too long and didn't see the forest for the trees. On 16/04/12 11:54 PM, Frank Rueter | OHUfx wrote: > Hi guys, > > I'm currently looking at an example that cross fades two

[PySide] sliding widgets into position

2012-04-25 Thread Frank Rueter | OHUfx
Hi, end of day for me and my brain has gone numb, so I'm probably missing the obvious: I'm trying to create a widget with three areas: top, middle and bottom (using QFrames as place holders for now). The middle frame is meant to be visible from the start containing some text and other widgets,

Re: [PySide] sliding widgets into position

2012-04-26 Thread Frank Rueter | OHUfx
e central widget. Cheers, Tibold On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: Hi, end of day for me and my brain has gone numb, so I'm probably missing the obvious: I'm trying to create a widget with three areas: top, middle and bottom (using QFrames as place holders for now).

Re: [PySide] sliding widgets into position

2012-04-26 Thread Frank Rueter | OHUfx
ob questions but have looked online for tutorials on this sort of positioning to no avail. Thanks in advance for any help! Cheers, frank On 4/27/12 10:08 AM, Frank Rueter | OHUfx wrote: Thanks Tibold, I will have a look at that. I'm still not sure how to figure out the positioning in a p

Re: [PySide] sliding widgets into position

2012-04-26 Thread Frank Rueter | OHUfx
http://pastebin.com/a04tvY0U Cheers, Tibold On 2012-04-27 02:11, Frank Rueter | OHUfx wrote: So I've followed Tibold's advice and sorted out some other ugly stuff and am a bit closer. My problem now is that, because I am not adding the top and bottom frames to the layout anymore (to a

Re: [PySide] sliding widgets into position

2012-04-29 Thread Frank Rueter | OHUfx
't. Would you mind explaining? Cheers and thanks again for this example! frank On 4/27/12 5:47 PM, Tibold Kandrai wrote: Try this out ;) http://pastebin.com/a04tvY0U Cheers, Tibold On 2012-04-27 02:11, Frank Rueter | OHUfx wrote: So I've followed Tibold's advice and sorted out

[PySide] need some more help with repositioning widgets

2012-04-29 Thread Frank Rueter | OHUfx
Hi all, thanks to a lot of help from this list I got quite far with my task but unfortunately am stuck again now. I thought it might be best to actually post the whole code here and not just little snippets, as I'm sure I'm making a few mistakes that all build up. I have combined the sliding d

Re: [PySide] sliding widgets into position

2012-04-30 Thread Frank Rueter | OHUfx
ok, thanks On 1/05/12 12:53 AM, Tibold Kandrai wrote: Hi! There I just needed a SIGNAL for the resizeEvent, to be able to resize the sliding widgets, so their size will always conform with the window. Cheers, Tibold On 2012-04-30 00:59, Frank Rueter | OHUfx wrote: Hi Tibold, I'm sta

Re: [PySide] sliding widgets into position

2012-04-30 Thread Frank Rueter | OHUfx
On 2012-04-30 00:59, Frank Rueter | OHUfx wrote: Hi Tibold, I'm starting to go through your example code and was wondering why it's necessary to subclass QFrame and re-implement the resizeEvent for "CentralFrame"?! To my novice eye it looks like what you did here should be wo

[PySide] creating custom setFrameStyle()

2012-05-01 Thread Frank Rueter | OHUfx
Hi everyone, I'm in the middle of creating a custom button by subclassing QWidget and reimplementing paintEvent(). I kinda have what I'm after except that I would like to give the whole button a "box/sunken" style. What is the best way to re-implement setFrameStyle() in my paintEvent? Or shoul

[PySide] re-implementing setDown() for custom button

2012-05-01 Thread Frank Rueter | OHUfx
Hi, to follow up my previous mail, I also just noticed that I have to re-implement the QAbstractButton's setDown() function to make sure my custom button doesn't stay down after a drag&drop action. With a QPushButton I simply called self.setDown( False ) from inside the mouseMoveEvent, so now

Re: [PySide] re-implementing setDown() for custom button

2012-05-01 Thread Frank Rueter | OHUfx
however I would like to implement this in the button's class if possible to make it self contained. How would I go about that? Cheers, frank On 2/05/12 5:44 PM, Frank Rueter | OHUfx wrote: > Hi, > > to follow up my previous mail, I also just noticed that I have to > re-im

Re: [PySide] re-implementing setDown() for custom button

2012-05-02 Thread Frank Rueter | OHUfx
Any takers? I'm kinda stuck with this one unfortunately. On 2/05/12 6:35 PM, Frank Rueter | OHUfx wrote: > sorry for the monolog, but I just realised I will also have to make my > custom button play along when it's parent's self.sender() function is > called as well. >

Re: [PySide] re-implementing setDown() for custom button

2012-05-03 Thread Frank Rueter | OHUfx
implement your own style button, QPushButton also takes icon. On Wed, May 2, 2012 at 11:23 PM, Frank Rueter | OHUfx <mailto:fr...@ohufx.com>> wrote: Any takers? I'm kinda stuck with this one unfortunately. On 2/05/12 6:35 PM, Frank Rueter | OHUfx wrote: > sorr

Re: [PySide] re-implementing setDown() for custom button

2012-05-03 Thread Frank Rueter | OHUfx
t;old button" in line 27 works as expected and turns the mouse cursor into a little plus sign when dragging. What am I missing? Cheers, frank On 3/05/12 7:11 PM, Frank Rueter | OHUfx wrote: Indeed, my apologies. Will strip out the relevant parts and post an example soon. On 3/05/12

Re: [PySide] re-implementing setDown() for custom button

2012-05-03 Thread Frank Rueter | OHUfx
orry, will try and be a bit more accountable next time. On 3/05/12 8:37 PM, Frank Rueter | OHUfx wrote: Here is some example code that I ripped out of my main code: http://pastebin.com/jXZXXebW It compares a sub classed QPushButton with one I painted from scratch. I was actually able to solve s

Re: [PySide] re-implementing setDown() for custom button

2012-05-03 Thread Frank Rueter | OHUfx
observed is: for your custom button, if you want a nice/native copy icon to appear - set following in your dragEnterEvent(I would prefer to do have dragMoveEvent) event.setDropAction(QtCore.Qt.CopyAction) event.accept() -Srini On Thu, May 3, 2012 at 1:51 AM, Frank Rueter | OHUfx <mailto

Re: [PySide] Fwd: re-implementing setDown() for custom button

2012-05-04 Thread Frank Rueter | OHUfx
, Srini Kommoori wrote: Forgot to cc the list. May be useful for archival purposes. -- Forwarded message -- From: *Srini Kommoori* mailto:vas...@gmail.com>> Date: Thu, May 3, 2012 at 11:50 PM Subject: Re: [PySide] re-implementing setDown() for custom button To: Frank Rueter |

Re: [PySide] animated fade

2012-05-10 Thread Frank Rueter | OHUfx
on, i.e. before the child widgets are available to draw a pixmap of them. http://pastebin.com/LQaCSWDU Does anybody have an idea or comments on how to do this best? Maybe I should aim for a layout that does this instead (subclassing QStackedLayout)? Any help would be greatly appreciated. Cheers,

[PySide] QPushButton with text under icon

2012-05-15 Thread Frank Rueter | OHUfx
Hi all, I thought this onw was going to be simple but I guess I was wrong: All Im' trying to do is draw the text of a QPushButton underneath it's icon. Is this possible? I can't find the answer and ended up using  QToolButton instead, but that doesn't render the

[PySide] pyside user list

2012-05-15 Thread Frank Rueter | OHUfx
Hi everyone, comparing what you guys have been posting here to my user questions over the last few weeks makes me believe that I have probably joined the wrong group to get support whilst learning and using PySide. Can anybody recommend a pyside user group where I could get help with my proble

Re: [PySide] pyside user list

2012-05-15 Thread Frank Rueter | OHUfx
Hi Aaron, thanks for confirming that I'm in the right spot. I totally appreciate people not having time for constantly solving other people's problems. I was just beginning to wonder after many of my posts went completely unanswered. I certainly don't intend to annoy people with my beginners que

Re: [PySide] pyside user list

2012-05-16 Thread Frank Rueter | OHUfx
ay 16, 2012 at 12:56 AM, Frank Rueter | OHUfx mailto:fr...@ohufx.com>> wrote: Hi Aaron, thanks for confirming that I'm in the right spot. I totally appreciate people not having time for constantly solving other people's problems. I was just beginning to wonder

[PySide] image format for best performance

2012-05-26 Thread Frank Rueter | OHUfx
Hi all, is there a recommended image format to use to get best performance out of QT? I've got some animated widgets (sliding docks etc.) that are populated with several small icons (currently 8bit pngs). Since the animation is a bit jerky I will have to go hunting for ways top optimise the cod

Re: [PySide] image format for best performance

2012-05-27 Thread Frank Rueter | OHUfx
re using come kind of itemmodel in the item used. > So at least in most cases you dont have to load your icon data twice. > For exmaple in a TreeView or TableView this greatly improves scrolling > speed. > > >Am 26.05.2012 22:34, schrieb Frank Rueter | OHUfx: >> Hi all, >

[PySide] QFrame > need custom shadow color and no highlight

2012-06-05 Thread Frank Rueter | OHUfx
Hi everyone, I have a QFrame set to "Panel" and "Sunken" style like this: import sys from PySide import QtGui app = QtGui.QApplication( sys.argv ) fr = QtGui.QFrame() fr.setFrameStyle( QtGui.QFrame.Panel | QtGui.QFrame.Sunken ) fr.setLineWidth( 3 ) fr.show() sys.exit( app.exec_() ) I am tryin

Re: [PySide] QFrame > need custom shadow color and no highlight

2012-06-06 Thread Frank Rueter | OHUfx
first,change just the colors you need different and then set the changed palette like this.hope it works.... Frank Rueter | OHUfx hat geschrieben: Hi everyone, I have a QFrame set to "Panel" and "Sunken" style like this: import sys from PySide import QtGui app = QtGui.QA

[PySide] search widget

2012-06-06 Thread Frank Rueter | OHUfx
Hi all, quick question for the more experienced: Is there a core widget for text search? I'm after pretty something that looks pretty much like this one (at the top): http://farm5.static.flickr.com/4042/4574583703_f7be03c653.jpg What I like is it's compactness. A little icon on one side inside t

Re: [PySide] search widget

2012-06-06 Thread Frank Rueter | OHUfx
time. Cheers, frank On 7/06/12 4:44 PM, Erik Janssens wrote: > there is none in Qt, but QtCreator contains one > > On Thu, Jun 7, 2012 at 6:42 AM, Frank Rueter | OHUfx wrote: >> Hi all, >> >> quick question for the more experienced: >> Is there a core wi

Re: [PySide] search widget

2012-06-06 Thread Frank Rueter | OHUfx
got ya, thanks. On 7/06/12 5:07 PM, Erik Janssens wrote: > the easiest thing would be to look at the source in there and > rewrite it in python > > On Thu, Jun 7, 2012 at 6:54 AM, Frank Rueter | OHUfx wrote: >> Hi Erik, >> thanks for the speedy reply! >> I have

Re: [PySide] search widget

2012-06-06 Thread Frank Rueter | OHUfx
012/6/7 Frank Rueter | OHUfx: >> quick question for the more experienced: >> Is there a core widget for text search? I'm after pretty something that >> looks pretty much like this one (at the top): >> http://farm5.static.flickr.com/4042/4574583703_f7be03c653.jpg > Some t

Re: [PySide] search widget

2012-06-07 Thread Frank Rueter | OHUfx
instead. Christofer Bertonha schrieb am 07.06.12 09:41: You can crange to a list of strings eg: ['str1', 'str2'] A more pythonic way [ ]' s Christofer Bertonha On Jun 7, 2012 3:28 AM, "Frank Rueter | OHUfx" <mailto:fr...@ohufx.com>> wrote:

Re: [PySide] search widget

2012-06-07 Thread Frank Rueter | OHUfx
, text): > if text: > self.clearButton.setVisible(True) > else: > self.clearButton.setVisible(False) > > > app = QtGui.QApplication([]) > w = SearchLineEdit(QtGui.QPixmap(r"system-search.png"), > QtGui.QPixmap(r"p

Re: [PySide] search widget

2012-06-07 Thread Frank Rueter | OHUfx
Thanks Anatoly, I will keep all these goodies for reference. Thanks everyone for the awesome help, it's very much appreciated! On 8/06/12 2:15 AM, anatoly techtonik wrote: > On Thu, Jun 7, 2012 at 7:42 AM, Frank Rueter | OHUfx wrote: >> Hi all, >> >> quick questio

[PySide] secure password handling

2012-06-14 Thread Frank Rueter | OHUfx
Hi everyone, I'm wondering about the best way to handle password input in PySide. I know about python's hashlib, but am wondering if there is a better way to provide security between the user's input into a PySide widget and the hashing. A friend was wondering about a precompiled widget that doe

Re: [PySide] secure password handling

2012-06-15 Thread Frank Rueter | OHUfx
thanks Henry On 15/06/12 7:52 PM, Henry Gomersall wrote: > On Fri, 2012-06-15 at 11:50 +1200, Frank Rueter | OHUfx wrote: >> I'm wondering about the best way to handle password input in PySide. >> I know about python's hashlib, but am wondering if there is a better >

Re: [PySide] secure password handling

2012-06-17 Thread Frank Rueter | OHUfx
have used this method. > Here are the details. > http://safebox.fabulasolutions.com/p/safebox-crypto-architecture.html > > all the best > > On Jun 15, 2012, at 12:52 AM, Henry Gomersall wrote: > >> On Fri, 2012-06-15 at 11:50 +1200, Frank Rueter | OHUfx wrote: >

[PySide] QPalette.BrightText not working under osx

2012-06-17 Thread Frank Rueter | OHUfx
Hello wise PySide people, I am looking at a confusing discrepancy between windows and osx when trying to simply change the main font colour of my app. I am using the "plastique" style to start with, then changing all sorts of values to custom tailor the look. For some reason this line has no e

Re: [PySide] QPalette.BrightText not working under osx

2012-06-18 Thread Frank Rueter | OHUfx
On 18/06/12 7:23 PM, Tibold Kandrai wrote: Hi, Try to use stylesheets instead. They are simpler and not as confusing as the QPalette. Check this: http://pastebin.com/JhuX2WX8 It works on my Mac. :) Cheers, Tibold 2012/6/18 Frank Rueter | OHUfx mailto:fr...@ohufx.com>> Hello wise

[PySide] inherited values that contribute to widgets position

2012-06-18 Thread Frank Rueter | OHUfx
Hi everyone, I am trying to learn what inherited value may contribute to a widget's real screen position. In my example I have a widget that I am animating out of frame, so I need to determine exactly what it's static position is to be able to set that as the animation's start value. If I just

Re: [PySide] inherited values that contribute to widgets position

2012-06-18 Thread Frank Rueter | OHUfx
need to take care of. Hope above is what you are looking for. thanks -Srini On Mon, Jun 18, 2012 at 4:33 PM, Frank Rueter | OHUfx <mailto:fr...@ohufx.com>> wrote: Hi everyone, I am trying to learn what inherited value may contribute to a widget's real screen position.

[PySide] rearranging widgets in a QGridLayout

2012-06-18 Thread Frank Rueter | OHUfx
Hi everyone, I'm wondering what the best way is to re-arrange items in a QGridLayout after it has been drawn. I've got a list of buttons in a QGridLayout which are meant to be hidden or displayed according to some search filters. The brute force way I tried first was to destroy the buttons ans

Re: [PySide] inherited values that contribute to widgets position

2012-06-18 Thread Frank Rueter | OHUfx
th.cubicTo was very useful in getting bezier curve implementation for smooth animations. If you are not using this, it might be useful ( http://goo.gl/0qlBG - PySide docs to QtGui.QPainterPath.cubicTo) All the best. thanks, -Srini On Mon, Jun 18, 2012 at 9:14 PM, Frank Rueter | OHUfx <mailto:

[PySide] events for QStyledItemDelegate

2012-06-24 Thread Frank Rueter | OHUfx
Hi all, I'm just re-writing part of my existing code to use the mode/view approach. I already have a complex custom widget which is a large button that can be dragged and dropped, and that shows "sub buttons" on mouse over (i.e. smaller rectangles are displayed in the corners on mouse over whi

[PySide] problem with custom sorting in QSortFilterProxyModel

2012-06-26 Thread Frank Rueter | OHUfx
Hi all, I'm trying to implement a custom sort behaviour on my first model/view structure and am hitting a road block (undoubtedly human error). My model is just a list of dictionaries all living in column 0 of their respective rows. I am not splitting up the dictionaries' keys into their own c

Re: [PySide] problem with custom sorting in QSortFilterProxyModel

2012-06-26 Thread Frank Rueter | OHUfx
HI all, just for future reference (if people have the same problem), the solution was to simply call self.invalidate() right before calling self.sort() in the proxy model. Cheers, frank On 26/06/12 7:32 PM, Frank Rueter | OHUfx wrote: Hi all, I'm trying to implement a custom

[PySide] restricting a widget to only be visible inside it's layout's geometry

2012-06-28 Thread Frank Rueter | OHUfx
Hi all, I am trying to build an animated version of the QStackedLayout where the requested widget pushes the previous one out of frame. I got it all working so far but the one thing I don't know how to do is to restrict the widgets's visibility to the layout's geometry, so that when they anima

Re: [PySide] restricting a widget to only be visible inside it's layout's geometry

2012-07-01 Thread Frank Rueter | OHUfx
Hi Aaron, thanks for the info. This is indeed what I'm after, however, I should have clarified that the QFrame is only in there to visualise the problem. Since I'm trying to create an animated layout (instead of a widget) I won't have anything to parent widgets to that are added to that layout.

Re: [PySide] restricting a widget to only be visible inside it's layout's geometry

2012-07-01 Thread Frank Rueter | OHUfx
I'm quite sure it is a > minority, since PEP8 is the official python style guide and written by > our Benevolent Dictator for Life and inventor of Python himself: Guido > von Rossum :-) > > Happy coding! > Aaron > > > > Am 02.07.2012 00:32, schrieb Frank Rueter | OHUf

Re: [PySide] events for QStyledItemDelegate

2012-07-01 Thread Frank Rueter | OHUfx
be able to use this as a delegate somehow. Cheers, frank On 25/06/12 3:47 PM, Frank Rueter | OHUfx wrote: Hi all, I'm just re-writing part of my existing code to use the mode/view approach. I already have a complex custom widget which is a large button that can be dragged and drop

Re: [PySide] events for QStyledItemDelegate

2012-07-01 Thread Frank Rueter | OHUfx
o "left" signal to close the editor again when the mouse cursor leaves the respective item, so I'm not sure if it's possible to use this approach. On 2/07/12 5:20 PM, Frank Rueter | OHUfx wrote: Does anybody have an idea how to do this? This seems to be turning into a show

Re: [PySide] events for QStyledItemDelegate

2012-07-02 Thread Frank Rueter | OHUfx
rag and drop etc.) - Handle this signals in the controller and propagate changes to the model if there are any (e.g. drag and drop changes the order) Have a nice evening! Aaron Am 02.07.2012 08:18, schrieb Frank Rueter | OHUfx: I'm half a step closer I think: I'm using the QStyledItem

[PySide] custom paint method and QLayout.spacing()

2012-07-10 Thread Frank Rueter | OHUfx
|Hi all, I am having difficulties with something I thought was going to be simple: I've got a custom button widget that uses it's own paint() function. I then place multiple instances of this in a QGrisLayout. The problem is that the layout's spacing doesn't effect the custom button when the p

Re: [PySide] custom paint method and QLayout.spacing()

2012-07-10 Thread Frank Rueter | OHUfx
that doesn't seem to make a difference. I guess I just need to paint it smaller than the widget's rect()? I wonder how QPushButton and all the other widgets do it. I'd like to just mimic that. On 10/07/12 7:30 PM, Sebastian Elner wrote: On 07/10/2012 09:13 AM, Frank Ruete

[PySide] "flatten" hierarchical model in proxy model

2012-07-12 Thread Frank Rueter | OHUfx
Hi guys, I asked this question on StackOverflow and was told that I can do what I need to, but no actual solution was suggested. Can somebody help please? I think I'm on the right track but might just be missing one bit (which is how to properly re-organise a source model's hierarchy in a proxy

[PySide] how to change font of single item in QComboBox

2012-07-25 Thread Frank Rueter | OHUfx
Hi all, I'm trying to make the first item in my QComboBox italic but can't figure out how. Any ideas out there? Cheers, frank ___ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside

Re: [PySide] how to change font of single item in QComboBox

2012-07-26 Thread Frank Rueter | OHUfx
, Qt.FontRole) > > Cheers > > Sebastian > > > On 07/26/2012 07:42 AM, Frank Rueter | OHUfx wrote: >> Hi all, >> >> I'm trying to make the first item in my QComboBox italic but can't >> figure out how. >> Any ideas out there? >> &g

Re: [PySide] how to change font of single item in QComboBox

2012-07-31 Thread Frank Rueter | OHUfx
that's not really a helpful reply as I have no choice but go with the version my host application is using. On 1/08/12 12:14 AM, anatoly techtonik wrote: > On Fri, Jul 27, 2012 at 12:36 AM, Frank Rueter | OHUfx > wrote: >> that's exactly what I tried but it doesn

[PySide] controlling link colour in QLabel

2012-08-15 Thread Frank Rueter | OHUfx
Hi all, I'm wondering if it's posisble to control the link colour in a little html snippet inside a QLabel. I've got something like this: QLabel.setText('LATEST NEWS:' + newsText) Where "newsText" may or may not include a link (it's a html snippet that I get from an online database which may

[PySide] right clicking on QTableView to get selected rows

2012-08-28 Thread Frank Rueter | OHUfx
Hi everybody, I'm trying to implement a simple right click menu for a QTableView to work with the selected rows. The basics seem to work nicely but it seems like the selectionModel() gets updated AFTER the mousePressEvent registered, meaning if the right selection that happens on right lcick i

Re: [PySide] right clicking on QTableView to get selected rows

2012-08-28 Thread Frank Rueter | OHUfx
int) Hope this helps, Tibold 2012/8/28 Frank Rueter | OHUfx mailto:fr...@ohufx.com>> Hi everybody, I'm trying to implement a simple right click menu for a QTableView to work with the selected rows. The basics seem to work nicely but it seems like the selectio

Re: [PySide] right clicking on QTableView to get selected rows

2012-08-28 Thread Frank Rueter | OHUfx
brilliant, just adding actions to the widget itself and using self.setContextMenuPolicy(Qt.ActionsContextMenu) works nicely. I was way over complicating this task. Thank you!! On 28/08/12 9:41 PM, Frank Rueter | OHUfx wrote: cool, thanks Tibold. That sounds like the right lead. I will

[PySide] help: can't install Pyside on linux anymore

2013-08-28 Thread Frank Rueter | OHUfx
Hi guys, this may be a linux problem more than a PySide problem, but after a day of searching for a solution I am a bit desperate and was hoping somebody here would be able to help: A few days ago I installed PySide on Kubuntu 12.10 without any trouble by running those commands: |sudo add-

Re: [PySide] help: can't install Pyside on linux anymore

2013-08-29 Thread Frank Rueter | OHUfx
heers Sebastian placeOn 08/29/2013 08:22 AM, Frank Rueter | OHUfx wrote: Hi guys, this may be a linux problem more than a PySide problem, but after a day of searching for a solution I am a bit desperate and was hoping somebody here would be able to help: A few days ago I installed PySide on

Re: [PySide] help: can't install Pyside on linux anymore

2013-08-29 Thread Frank Rueter | OHUfx
y problem I had with it is that the Ui tools didn’t build, but since I’m not really using it that’s not that big of a problem for me, although they can be compiled by fixing the cmake files. Cheers, Tibold Kandrai *From:* Frank Rueter | OHUfx *Sent:* ‎Thursday‎, ‎29‎ ‎August‎ ‎2013 ‎09‎:‎09

Re: [PySide] help: can't install Pyside on linux anymore

2013-08-29 Thread Frank Rueter | OHUfx
Cheers, Tibold Kandrai *From:* Frank Rueter | OHUfx *Sent:* Thursday, 29 August 2013 09:09 *To:* pyside@qt-project.org <mailto:pyside@qt-project.org> Thanks for the heads up Sebastian. That is probably a good way to go, as I need to add os specific logic as well (

Re: [PySide] help: can't install Pyside on linux anymore

2013-08-29 Thread Frank Rueter | OHUfx
ly problem I had with it is that the Ui tools didn't build, but since I'm not really using it that's not that big of a problem for me, although they can be compiled by fixing the cmake files. Cheers, Tibold Kandrai *From:* Frank Rueter | OHUfx *Sent:* Thursday

Re: [PySide] help: can't install Pyside on linux anymore

2013-08-29 Thread Frank Rueter | OHUfx
g it that’s not that big of a problem for me, although they can be compiled by fixing the cmake files. Cheers, Tibold Kandrai *From:* Frank Rueter | OHUfx *Sent:* ‎Thursday‎, ‎29‎ ‎August‎ ‎2013 ‎09‎:‎09 *To:* pyside@qt-project.org Thanks for the heads up Sebastian. That is probably a good way to g

Re: [PySide] help: can't install Pyside on linux anymore - SOLVED

2013-08-29 Thread Frank Rueter | OHUfx
Sorry for the noise. I had forgotten to run the post install script. After that everything seems to be working fine now. Thanks for baring with me everyone! frank On 30/08/13 11:43, Frank Rueter | OHUfx wrote: So I followed those instructions to compile PySide myself. All seemed to go

[PySide] a couple of QProgressDialog questions

2013-09-02 Thread Frank Rueter | OHUfx
Hi everybody, after almost a year of having to neglect PySide I'm finally making some time for it again, only to feel like I almost forgot everything I learned :-D I'm trying to do something fairly common and wanted to sanity check my approach, so here is my sandbox script to figure out how to

Re: [PySide] a couple of QProgressDialog questions

2013-09-03 Thread Frank Rueter | OHUfx
oops, ignore that redundant perform()method in there please: http://pastebin.com/7YRXPGqP On 9/3/13 6:31 PM, Frank Rueter | OHUfx wrote: > Hi everybody, > > after almost a year of having to neglect PySide I'm finally making some > time for it again, only to feel like I almost fo

  1   2   3   4   >