mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 20:51:09 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
14 lines
379 B
Python
14 lines
379 B
Python
# snippet list generation
|
|
import os
|
|
|
|
# list of snippet files
|
|
snip_list = [x[:-3] for x in os.listdir (os.path.dirname (__file__))
|
|
if not x.startswith('_') and x.endswith('.py')]
|
|
snip_list.sort()
|
|
|
|
# function used by some or all snippets
|
|
def snippet_normalize (ctx, width, height):
|
|
size = min(width, height)
|
|
ctx.scale(size, size)
|
|
ctx.set_line_width (0.04)
|