@@ -0,0 +1,1710 @@
+%22%22%22%0A@author: Pranay Pradhananga, Damian Katsigiannis%0A@filename: EndLayout.py%0A@title: EndLayout%0A@description: This is the main program for the Scratchbasic application. %0A              It consists of four major layout panel: Main Layout, Command Panel Layout, Workspace Layout, Output Layout%0A              MainLayout is the base layout that instantiates Command Panel, Workspace and Output layout in order%0A              Each Expression Layout PRINT, LET, IF/GOTO, GOTO is a subclass of Expression Layout%0A              Such design consideration allows one to add a new expression by simply extending Expression Layout%0A              This program reuses existing Dumbasic program written in Python to compute the expressions and operations%0A              An instance of Interpreter class is used to integrate with Dumbasic program %0A%22%22%22%0A%0Aimport kivy%0Afrom Layouts.Expressions.ExpressionLayout import ExpressionLayout%0Afrom kivy.uix.label import Label%0Afrom kivy.uix.textinput import TextInput%0Afrom kivy.uix.button import Button%0Afrom kivy.uix.widget import Widget%0A%0Akivy.require('1.0.6') # current kivy version !%0A%0A%0A%0Aclass EndLayout(ExpressionLayout):%0A    %22%22%22%0A    Goto Layout represents Gosub expression. It extends the Expression Layout%0A    %22%22%22%0A    def __init__(self, line,  **kwargs):%0A        super(EndLayout, self).__init__(line, 'END', **kwargs)%0A%0A        self.cols = 4%0A        self.padding = 4%0A        self.height = 40%0A        self.width = 100%0A%0A       %0A    %22%22%22%0A    Add the widgets to the layout%0A    %22%22%22%0A    def draw(self):%0A        super(EndLayout, self).draw()%0A     %0A   %0A    %22%22%22%0A    Get the expression list%0A    %22%22%22%0A    def get_expression(self):%0A        super(EndLayout, self).get_expression()%0A        return %5Bself.name%5D

Add End Layout