Python 3.13: Fix and polish #1

Merged
vilmibm merged 15 commits from noelle/tilde-train:python-3.13 into trunk 2025-06-02 22:23:23 +00:00
Showing only changes of commit 6d4e7c7914 - Show all commits

View File

@ -52,40 +52,42 @@ print_train = False ## print train to file (instead of the screen scroll)
train = [""]*max_y ## empty train of correct height. train = [""]*max_y ## empty train of correct height.
cars = [] cars = []
engine = r""" ____ engine = [
|____| ------------ r" ____ ",
| | === | ------ | r" |____| ------------",
___| |__| |_____| | O | | r" | | === | ------ |",
| | | |__/V\_| | r" ___| |__| |_____| | O | |",
[[ | | r" | | | |__/V\_| |",
| | ------------ | ~town | r" [[ | |",
|__|______________|__________| r" | | ------------ | ~town |",
//// / _\__/__\__/__\ / \ r" |__|______________|__________|",
//// \__/ \__/ \__/ \__/ """ r" //// / _\__/__\__/__\ / \ ",
engine = engine.split("\n") r"//// \__/ \__/ \__/ \__/ ",
]
caboose = r""" || caboose = [
============= || r" || ",
=========| |========== r" ============= || ",
| ---- ---- | r"=========| |========== ",
| | | | | | r" | ---- ---- | ",
| ---- ---- | r" | | | | | | ",
| tilde.town railways | r" | ---- ---- | ",
==| |== r" | tilde.town railways | ",
== - / \-/ \-----/ \-/ \ - == r"==| |== ",
\__/ \__/ \__/ \__/ """ r"== - / \-/ \-----/ \-/ \ - == ",
caboose = caboose.split("\n") r" \__/ \__/ \__/ \__/ ",
]
default_car = r""" ----------------------------
| |
| YOUR TRAIN CAR HERE! |
| Just create a |
| ~/.choochoo file! |
| __ __ __ __ |
- / \-/ \------/ \-/ \ -
\__/ \__/ \__/ \__/"""
default_car = default_car.split("\n")
default_car = [
r" ---------------------------- ",
r"| |",
r"| YOUR TRAIN CAR HERE! |",
r"| Just create a |",
r"| ~/.choochoo file! |",
r"| __ __ __ __ |",
r" - / \-/ \------/ \-/ \ - ",
r" \__/ \__/ \__/ \__/ ",
]
def print_help(): def print_help():
print("") print("")