-
-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e420203
commit 4943695
Showing
2 changed files
with
69 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from toga_gtk.libs import Gtk | ||
|
||
from .base import SimpleProbe | ||
|
||
|
||
class SelectionProbe(SimpleProbe): | ||
native_class = Gtk.ComboBoxText | ||
|
||
# @property | ||
# def alignment(self): | ||
# xfail("Can't change the alignment of Selection on macOS") | ||
|
||
# @property | ||
# def color(self): | ||
# xfail("Can't change the color of Selection on macOS") | ||
|
||
# @property | ||
# def font(self): | ||
# xfail("Can't change the font of Selection on macOS") | ||
|
||
# @property | ||
# def background_color(self): | ||
# xfail("Can't change the background color of Selection on macOS") | ||
|
||
@property | ||
def titles(self): | ||
return [] | ||
|
||
@property | ||
def selected_title(self): | ||
return self.native.get_active_text() | ||
|
||
async def select_item(self): | ||
pass |