Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Oct 8, 2024
1 parent b780e52 commit 409be01
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/List View/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
["Default Item 1", "Default Item 2", "Default Item 3"]
)

item = 4
item = 1

model = Gtk.SingleSelection(model=string_model)


def on_item_changed(_list, position, removed, added):
print(f"position: {position}, Item removed? {removed != 0}, Item added? {added != 0}")
print(
f"position: {position}, Item removed? {removed != 0}, Item added? {added != 0}"
)


def on_selection_changed(*_):
Expand Down Expand Up @@ -47,4 +49,3 @@ def on_remove_clicked(*_):

add.connect("clicked", on_add_clicked)
remove.connect("clicked", on_remove_clicked)

0 comments on commit 409be01

Please sign in to comment.