1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-07-02 22:36:54 +02:00
Files
STARK/SmallTalk/SmallTalk.py
dQz6tMwk8rJqvDR 87cb99e959 create class Command, module SmallTalkt
add test.py
2020-06-20 19:35:05 +03:00

26 lines
825 B
Python

# Create class SmallTalk
# Module for speaking with voice assistent
# Command is parent for SmallTalk
# See class Command
from Command import Command # import parent class
class SmallTalk(Command):
def __init__(this, name, kw = {}): # initialisation of new command
super().__init__(name, kw) # call Command constructor
def start(this, string): # main method
print('Im using smalltalk now :)')
def confirm(this): # optional method
return true
# setters
def setStart(this, function): # define start (required)
this.start = function
def setConfirm(this, function): # define confirm (optional)
this.confirm = function