[42ca9f]: plugins / button_frames.py  Maximize  Restore  History

Download this file

21 lines (14 with data), 655 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#-*-python-*-
from formats import *
# print buttons which have frame indices other than 0, 1, 0, 0
def print_button_frames (filename):
c = chui.CHUI_Format (filename)
c.decode_file()
for w in c.window_list:
for b in w['control_list']:
if b['type'] != 0: continue
if (0, 1, 0, 0) != (b['frame_unpressed'], b['frame_pressed'], b['frame_selected'], b['frame_disabled']):
mark = "<---"
else:
mark = ""
print "%2d/%2d: %d %d %d %d" %(w['id'], b['id'], b['frame_unpressed'], b['frame_pressed'], b['frame_selected'], b['frame_disabled']), mark

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks