summaryrefslogtreecommitdiffstats
path: root/examples3/tooltip.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples3/tooltip.py')
-rwxr-xr-xexamples3/tooltip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples3/tooltip.py b/examples3/tooltip.py
index 03bcd4f..13025e3 100755
--- a/examples3/tooltip.py
+++ b/examples3/tooltip.py
@@ -76,7 +76,7 @@ class TellMe( TQWidget ):
self.r2 = self.randomRect()
def randomRect( self ):
- return TQRect( random() * (self.width() - 20), random() * (self.height() - 20), 20, 20 )
+ return TQRect( int(random() * (self.width() - 20)), int(random() * (self.height() - 20)), 20, 20 )
def tip( self, p ):