Skip to content

Instantly share code, notes, and snippets.

@mobius
Created April 5, 2016 07:48
Show Gist options
  • Save mobius/944f46419318352523a7910ccf29e005 to your computer and use it in GitHub Desktop.
Save mobius/944f46419318352523a7910ccf29e005 to your computer and use it in GitHub Desktop.
convert winform designer generated InitializeComponents to ironpython script
# remove various cast
replace \(\([\w.]+\)
with (
# change this with self
# change size 10F to 10
replace (\d+)F
with $1
# replace } as ,) replace { as ( when AddRange
# also remove AddRange[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment