Repository navigation
Add GTK and Qt backends - #6
Merged
Merged
Conversation
kattni
added a commit
to kattni/toga-code-editor
that referenced
this pull request
Oct 12, 2026
freakboy3742
force-pushed
the
gtk-qt-backends
branch
from
October 12, 2026 08:10
0018885 to
9d5acbb
Compare
freakboy3742
approved these changes
Oct 12, 2026
freakboy3742
left a comment
Member
There was a problem hiding this comment.
I've made some tweaks to how the example editor is launched, so that Qt is easier to test - there's probably some more we can do to explicitly list the system dependencies, but for now, this is good enough. Thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds GTK 3 and Qt backends for
CodeEditor, bringing the widget to Linux.Gtk.TextTags for highlights; the gutter is drawn into the text view's left border window. GTK 3 only, since Toga 0.5.7 has no working GTK 4 multiline input.QPlainTextEditwith aQSyntaxHighlighterfor the spans and a child widget for the gutter.toga_gtkandtoga_qt; both modules join the coverage omit list. No new dependencies.TOGA_BACKEND=toga_qt, since both backends register aslinux).Both backends were checked on Ubuntu 26.04 with real keyboard and mouse input: highlighting of each sample, typing, a trailing newline, emoji offsets, wrapped lines, gutter width and toggling, and scrolling.
PR Checklist:
Assisted-by: Claude Fable 5.1 (Claude Code)