Get pure icon surface w/o creating any widgets #1687

This commit is contained in:
Aleksey Lim 2010-01-25 17:40:58 +00:00
parent e1d4afe13e
commit fea8acec84

View File

@ -1146,3 +1146,10 @@ def get_icon_file_name(icon_name):
filename = info.get_filename()
del info
return filename
def get_surface(**kwargs):
icon = _IconBuffer()
for key, value in kwargs.items():
icon.__setattr__(key, value)
return icon.get_surface()