<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
><br>><br>> From:<br>> "Jon Chambers" <jon.chambers3001@gmail.com><br>> Date:<br>> Wed, 5 Mar 2008 23:58:26 +0000<br>> To:<br>> pyqt@riverbankcomputing.com<br>><br>><br>><br>> Hi,<br>> I'm trying to write a program that creates an onscreen keyboard that <br>> uses an 2-analogue stick joypad for input. I'm having issues becuase <br>> the joystick needs to be polled regularly. I'm using a QTimer to call <br>> a paintEvent update() that polls the joystick in the main class <br>> (Keyboard). However there's some other drawing i want to do when the <br>> joystick is polled. However the drawing is supposed to be done by a <br>> different class with its own graphics etc (called Ring), and i found <br>> the only way that seemed to work was to put the drawing i want to do <br>> in the paintEvent of that class and both seem to get called. But this <br>> seems kinda weird, and for some reason if i simply called the drawing <br>> to be done by Ring as a method of the Ring object in the paintEvent of <br>> Keyboard it doesn't work.<br>> I'm sorry if there's a bit confusing, i'm very new to programming and <br>> QT and also asking questions on mailing lists.<br>><br>Hi Jon,<br>Have you considered using pygame module for your joystick controls?<br><br>Neil.<br><br><br /><hr />Everything in one place. <a href='http://www.windowslive.co.uk/get-live' target='_new'>All new Windows Live!</a></body>
</html>