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
a2cd273c
Commit
a2cd273c
authored
Oct 28, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
errordialog: adequate text insertion
parent
ccb9495b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
errordialog.py
src/widgets/errordialog.py
+2
-3
No files found.
src/widgets/errordialog.py
View file @
a2cd273c
...
...
@@ -19,9 +19,8 @@ class ErrorDialog(Adw.Dialog):
self
.
gh_button
.
connect
(
"activated"
,
self
.
on_gh_clicked
)
def
append_log
(
self
,
text
):
GLib
.
idle_add
(
self
.
textbuffer
.
insert_at_cursor
,
text
)
GLib
.
idle_add
(
self
.
textview
.
scroll_to_mark
,
self
.
textbuffer
.
get_insert
(),
0
,
False
,
0.0
,
1.0
)
self
.
textbuffer
.
set_text
(
text
)
self
.
textview
.
scroll_to_mark
(
self
.
textbuffer
.
get_insert
(),
0
,
False
,
0.0
,
1.0
)
# Прокручиваем к курсору
def
present_error
(
self
,
win
,
error
):
self
.
error
=
None
...
...
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