Skip to content

Instantly share code, notes, and snippets.

View Dayof's full-sized avatar
🏠
Working from home

Dayanne Fernandes Dayof

🏠
Working from home
  • Landing AI
  • Anápolis, GO, Brasil
  • X @daayoff
View GitHub Profile
import toga
from colosseum import CSS
class StartApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
self.input_box = toga.Box()
import toga
from collections import namedtuple
# Structure of the main data source of the tree
GRADES = namedtuple('Grades', 'cl grade')
class TreeStructure:
def __init__(self):
# Data source of the tree
self.data = (
import toga
class StartApp(toga.App):
def startup(self):
# Main window
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
# Tree widget from Toga
self.tree = toga.Tree(['Navigate'])
import toga
class StartApp(toga.App):
def startup(self):
# Main window
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
# Tree widget from Toga
self.tree = toga.Tree(['Py', 'bee', 'is', 'awesome'])
import toga
class StartApp(toga.App):
def startup(self):
# Main window
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
# Tree widget from Toga
self.tree = toga.Tree(['Navigate'])
import toga
class StartApp(toga.App):
def startup(self):
# Main window
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
# Tree data source
# A dictionary data source construction need to following the format:
import toga
class StartApp(toga.App):
def startup(self):
# Main window
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
# Tree widget from Toga
self.tree = toga.Tree(['Navigate'])
import toga
class StartApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
self.tree = toga.Tree(['Navigate'])
self.root_one_id = self.tree.insert(None, None, 'root')
import toga
from colosseum import CSS
class StartApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
self.outer_box = toga.Box()
import toga
class StartApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
main_content = toga.Box()
bar = toga.ProgressBar(max=100, value=50)