Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm-play-gui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roman Alifanov
eepm-play-gui
Commits
f39332ca
Commit
f39332ca
authored
Oct 25, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
when the user clicks on the row, the checkbox is activated
parent
50532fed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
applicationrow.py
src/widgets/applicationrow.py
+7
-0
No files found.
src/widgets/applicationrow.py
View file @
f39332ca
...
...
@@ -7,13 +7,20 @@ class ApplicationRow(Adw.ActionRow):
super
()
.
__init__
(
title
=
app
[
'name'
],
subtitle
=
app
[
'dscr'
])
self
.
app
=
app
self
.
is_installed
=
is_installed
self
.
set_selectable
(
False
)
self
.
set_activatable
(
True
)
self
.
checkbox
=
Gtk
.
CheckButton
()
self
.
checkbox
.
add_css_class
(
"selection-mode"
)
self
.
checkbox
.
set_valign
(
Gtk
.
Align
.
CENTER
)
self
.
checkbox
.
set_halign
(
Gtk
.
Align
.
CENTER
)
self
.
checkbox
.
set_active
(
is_installed
)
self
.
checkbox
.
connect
(
"toggled"
,
self
.
on_checkbox_toggled
)
self
.
add_suffix
(
self
.
checkbox
)
self
.
connect
(
"activated"
,
lambda
_
:
self
.
checkbox
.
activate
())
self
.
on_toggle
=
on_toggle
# Callback for when the checkbox is toggled
def
on_checkbox_toggled
(
self
,
checkbox
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment