Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guido Gunther
Stream
Commits
32ded0c2
Verified
Commit
32ded0c2
authored
Apr 06, 2021
by
Todd Weaver
Browse files
Adding async functions, removing print proof
parent
dac32202
Changes
1
Show whitespace changes
Inline
Side-by-side
src/results.py
View file @
32ded0c2
...
...
@@ -87,7 +87,6 @@ class ResultsBox(Gtk.Box):
self
.
video_duration
=
f
"
{
m
:
d
}
:
{
s
:
02
d
}
"
def
on_file_read
(
self
,
poster_file
,
async_res
,
user_data
):
print
(
'on_file_read works'
)
stream
=
poster_file
.
read_finish
(
async_res
)
GdkPixbuf
.
Pixbuf
.
new_from_stream_at_scale_async
(
stream
,
self
.
video_box_width
,
self
.
video_box_height
,
...
...
@@ -97,7 +96,6 @@ class ResultsBox(Gtk.Box):
None
)
# user_data
def
on_stream_load
(
self
,
source
,
async_res
,
context
):
print
(
'stream_at_scale_async works'
)
pixbuf
=
GdkPixbuf
.
Pixbuf
.
new_from_stream_finish
(
async_res
)
self
.
poster_image
.
clear
()
...
...
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