Changeset 164

Show
Ignore:
Timestamp:
10/25/2004 12:48:44 PM (4 years ago)
Author:
mtigges
Message:

Added a simple function in the base class to set the position to an
absolute location, rather than just relative like the move function.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plwm/moveresize.py

    r37 r164  
    1 # $Id: moveresize.py,v 1.4 2001-08-24 16:46:08 petli Exp $ 
     1# $Id: moveresize.py,v 1.5 2004-10-25 17:48:44 mtigges Exp $ 
    22# 
    33# moveresize.py -- Move and resize clients 
     
    5555 
    5656        self.client.wm.events.put_event(MoveResizeStart(self.client)) 
     57 
     58    def setposition(self,x,y): 
     59        # Sets the position to an absolute location, not relative 
     60        self.x, self.y = x,y 
     61        self.adjust() 
     62        self.do() 
    5763 
    5864    def move(self, x, y):