~jronnholm/startup-manager/main

« back to all changes in this revision

Viewing changes to bootconfig/utils.py

  • Committer: Jimmy Rönnholm
  • Date: 2009-03-29 13:11:27 UTC
  • Revision ID: jimmy.ronnholm@gmail.com-20090329131127-twh6msttbevbzd95
Fixed some indentation errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        os.rmdir('/mnt/floppysum')
152
152
    return 0
153
153
    
154
 
    def get_resolution():
155
 
        pipe = os.popen('xrandr')
156
 
        data = pipe.read()
157
 
        pipe.close()
158
 
        matches = re.search('current (\d+) x (\d+)', data)
159
 
        return matches.group(1) + 'x' + matches.group(2)
 
154
def get_resolution():
 
155
    pipe = os.popen('xrandr')
 
156
    data = pipe.read()
 
157
    pipe.close()
 
158
    matches = re.search('current (\d+) x (\d+)', data)
 
159
    return matches.group(1) + 'x' + matches.group(2)
160
160
 
161
 
    def set_resolution(resolution):
162
 
        os.system('xrandr --size ' + resolution)
 
161
def set_resolution(resolution):
 
162
    os.system('xrandr --size ' + resolution)