Skip to content

Light weight, easy to use model railway layout control panel

License

Notifications You must be signed in to change notification settings

aajshaw/LayoutControlLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LayoutControlLite

LayoutControlLite is a Python 3 library to enable the creation of schematic railway layouts with a mimimum of coding.

The main aims of this project is to enable the deveoppment of layout control panels by people with little experience of writing programms and to run on inexpensive hardware.

This example is produced by a short Python program

turnout demo

from LayoutControlLite import Track, Stub, Turnout, Signal, Layout

# Define the individual items
main = Track('Main Line', (25, 200), (1175, 200))
turnout = Turnout('Turnout', (500, 200))
siding = Stub('Siding', (600, 150), (800, 150))
signal = Signal('Signal', (400, 225))

# Create the layout and add the items
layout = Layout('Simple Turnout')
layout.add(main)
layout.add(signal)
layout.add(turnout)
layout.add(siding)

# Run the layout with all defaults
layout.run()

About

Light weight, easy to use model railway layout control panel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages