Skip to content

Instantly share code, notes, and snippets.

View HalfWhitt's full-sized avatar

Charles Whittington HalfWhitt

View GitHub Profile
@HalfWhitt
HalfWhitt / merge_test.py
Created January 9, 2024 02:39
Testing Merge All Windows
import toga
class WindowSubclass(toga.Window):
pass
class TestMergeApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(title="Main Window")
@HalfWhitt
HalfWhitt / tabbing_test.py
Last active November 12, 2023 00:09
A quick-and-dirty test to play around with automatic tabbing in Toga on macOS
import toga
from toga_cocoa.libs import NSWindow
class TestTabApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(
title=f"Main Window: Created while {NSWindow.allowsAutomaticWindowTabbing}"
)
self.status_label = toga.Label(str(NSWindow.allowsAutomaticWindowTabbing))