06-09-2011, 11:21 PM
Quote:Also, be aware that the initial x and y coordinate of 0 are just dummy values. To use this script effectively, you should either specify explicit x and y coordinates for the window or create an algorithm to determine them, if you need to display the window in a different location depending on the circumstances.
In a nutshell, the window is defaulted to the top left corner of the screen as (like you said) the x and y position is set to 0,0. Either you can replace the x/y values of 0,0 with values as noted here...
From
Code:
super(0, 0, w, h)
Code:
super(20, 40, w, h)
Or better yet, replace them with variables like x and y, and edit the initialization method to match:
Code:
#--------------------------------------------------------------------------
# * Object Initialization
# x : x-position
# y : y-position
# lines : lines
#--------------------------------------------------------------------------
def initialize(x,y,lines)
Code:
super(x, y, w, h)
DerVVulfman's 'regular Joe' account for testing and permissions use.
Who watches the Watchmen?
Who watches the Watchmen?