tbapi.api.interfaces.iwindow_provider
1from __future__ import annotations 2from typing import TYPE_CHECKING 3from tbapi.common.decorators import tb_interface 4from tbapi.common.converters import to_python_datetime, to_net_datetime 5from datetime import datetime 6from Tickblaze.Scripts.Api.Interfaces import IWindowProvider as _IWindowProvider 7from typing import Any, overload 8from abc import ABC, abstractmethod 9 10@tb_interface(_IWindowProvider) 11class IWindowProvider(): 12 """Provides the ability to create windows""" 13 14 15 @abstractmethod 16 def create_window(self, title: str) -> Any: 17 """Creates a new window. An object representing the created window, or null if the creation failed.""" 18 result = self._value.CreateWindow(title) 19 return result 20
@tb_interface(_IWindowProvider)
class
IWindowProvider:
16@tb_interface(_IWindowProvider) 17class IWindowProvider(): 18 """Provides the ability to create windows""" 19 20 21 @abstractmethod 22 def create_window(self, title: str) -> Any: 23 """Creates a new window. An object representing the created window, or null if the creation failed.""" 24 result = self._value.CreateWindow(title) 25 return result
Provides the ability to create windows
@abstractmethod
def
create_window(self, title: str) -> Any:
21 @abstractmethod 22 def create_window(self, title: str) -> Any: 23 """Creates a new window. An object representing the created window, or null if the creation failed.""" 24 result = self._value.CreateWindow(title) 25 return result
Creates a new window. An object representing the created window, or null if the creation failed.