diff --git a/package/PikaStdLib/PikaDebug.py b/package/PikaStdLib/PikaDebug.py index dc2bd9840..60ed65924 100644 --- a/package/PikaStdLib/PikaDebug.py +++ b/package/PikaStdLib/PikaDebug.py @@ -1,9 +1,9 @@ from PikaObj import * class Debuger(TinyObj): - def __init__(): + def __init__(self): pass - def set_trace(): + def set_trace(self): pass \ No newline at end of file diff --git a/package/PikaStdLib/PikaStdTask.py b/package/PikaStdLib/PikaStdTask.py index ea19b9272..da599d389 100644 --- a/package/PikaStdLib/PikaStdTask.py +++ b/package/PikaStdLib/PikaStdTask.py @@ -5,33 +5,33 @@ import PikaStdData class Task(TinyObj): calls = PikaStdData.List() - def __init__(): + def __init__(self): pass # regist a function to be called always - def call_always(fun_todo: any): + def call_always(self, fun_todo: any): pass # regist a function to be called when fun_when() return 'True' - def call_when(fun_todo: any, fun_when: any): + def call_when(self, fun_todo: any, fun_when: any): pass # regist a function to be called periodically - def call_period_ms(fun_todo: any, period_ms: int): + def call_period_ms(self, fun_todo: any, period_ms: int): pass # run all registed function once - def run_once(): + def run_once(self): pass # run all registed function forever - def run_forever(): + def run_forever(self): pass # run all registed function until time is up - def run_until_ms(until_ms: int): + def run_until_ms(self, until_ms: int): pass # need be overried to supply the system tick - def platformGetTick(): + def platformGetTick(self): pass diff --git a/port/linux/package/pikascript/GTestTask.py b/port/linux/package/pikascript/GTestTask.py index b4cc8f5e1..51043a0a6 100644 --- a/port/linux/package/pikascript/GTestTask.py +++ b/port/linux/package/pikascript/GTestTask.py @@ -3,5 +3,5 @@ import PikaStdTask class Task(PikaStdTask.Task): - def platformGetTick(): + def platformGetTick(self): pass diff --git a/port/linux/package/pikascript/PikaDebug.py b/port/linux/package/pikascript/PikaDebug.py index dc2bd9840..60ed65924 100644 --- a/port/linux/package/pikascript/PikaDebug.py +++ b/port/linux/package/pikascript/PikaDebug.py @@ -1,9 +1,9 @@ from PikaObj import * class Debuger(TinyObj): - def __init__(): + def __init__(self): pass - def set_trace(): + def set_trace(self): pass \ No newline at end of file diff --git a/port/linux/package/pikascript/PikaMath.py b/port/linux/package/pikascript/PikaMath.py index ca161a0a2..27ccd6d30 100644 --- a/port/linux/package/pikascript/PikaMath.py +++ b/port/linux/package/pikascript/PikaMath.py @@ -1,41 +1,41 @@ from PikaObj import * class Operator(TinyObj): - def plusInt(num1: int, num2: int) -> int: + def plusInt(self, num1: int, num2: int) -> int: pass - def plusFloat(num1: float, num2: float) -> float: + def plusFloat(self, num1: float, num2: float) -> float: pass - def minusInt(num1: int, num2: int) -> int: + def minusInt(self, num1: int, num2: int) -> int: pass - def minusFloat(num1: float, num2: float) -> float: + def minusFloat(self, num1: float, num2: float) -> float: pass - def equalInt(num1: int, num2: int) -> int: + def equalInt(self, num1: int, num2: int) -> int: pass - def equalFloat(num1: float, num2: float) -> int: + def equalFloat(self, num1: float, num2: float) -> int: pass - def graterThanInt(num1: int, num2: int) -> int: + def graterThanInt(self, num1: int, num2: int) -> int: pass - def graterThanFloat(num1: float, num2: float) -> int: + def graterThanFloat(self, num1: float, num2: float) -> int: pass - def lessThanInt(num1: int, num2: int) -> int: + def lessThanInt(self, num1: int, num2: int) -> int: pass - def lessThanFloat(num1: float, num2: float) -> int: + def lessThanFloat(self, num1: float, num2: float) -> int: pass - def AND(flag1: int, flag2: int) -> int: + def AND(self, flag1: int, flag2: int) -> int: pass - def OR(flag1: int, flag2: int) -> int: + def OR(self, flag1: int, flag2: int) -> int: pass - def NOT(flag: int) -> int: - pass \ No newline at end of file + def NOT(self, flag: int) -> int: + pass diff --git a/port/linux/package/pikascript/PikaStdTask.py b/port/linux/package/pikascript/PikaStdTask.py index ea19b9272..da599d389 100644 --- a/port/linux/package/pikascript/PikaStdTask.py +++ b/port/linux/package/pikascript/PikaStdTask.py @@ -5,33 +5,33 @@ import PikaStdData class Task(TinyObj): calls = PikaStdData.List() - def __init__(): + def __init__(self): pass # regist a function to be called always - def call_always(fun_todo: any): + def call_always(self, fun_todo: any): pass # regist a function to be called when fun_when() return 'True' - def call_when(fun_todo: any, fun_when: any): + def call_when(self, fun_todo: any, fun_when: any): pass # regist a function to be called periodically - def call_period_ms(fun_todo: any, period_ms: int): + def call_period_ms(self, fun_todo: any, period_ms: int): pass # run all registed function once - def run_once(): + def run_once(self): pass # run all registed function forever - def run_forever(): + def run_forever(self): pass # run all registed function until time is up - def run_until_ms(until_ms: int): + def run_until_ms(self, until_ms: int): pass # need be overried to supply the system tick - def platformGetTick(): + def platformGetTick(self): pass