Parlatype.Waveviewer¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
|||
r/w/c |
|||
r |
|||
r/w |
|||
r/w/c |
|||
r |
|||
r |
|||
r/w/c |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Signals that the cursor’s position was changed by the user. |
|
Indicates progress on a scale from 0.0 to 1.0. |
|
Signals that the user requested to toggle play/pause. |
|
Signals that the selection was changed (or unselected) by the user. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Parlatype.Waveviewer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
the widget
- Return type:
Create a new, initially blank waveform viewer widget.
After use gtk_widget_destroy() it.
New in version 1.5.
- get_follow_cursor()¶
-
Get follow-cursor option.
New in version 1.5.
- load_wave_async(uri, cancel, callback, *user_data)¶
- Parameters:
uri (
str
) – the URI of the filecancel (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the operation is complete
Load wave form for the given URI. The initial resolution is set to
Parlatype.Waveviewer
:pps
. While loading, aParlatype.Waveviewer
::load-progress
signal is emitted. A previous waveform is discarded.New in version 2.0.
- load_wave_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – theGio.AsyncResult
passed to yourGio.AsyncReadyCallback
- Raises:
- Returns:
- Return type:
Gives the result of the async load operation. A cancelled operation results in an error, too.
New in version 2.0.
- set_follow_cursor(follow)¶
- Parameters:
follow (
bool
) – new value
Set follow-cursor option to
True
orFalse
. See alsoParlatype.Waveviewer
:follow-cursor
.New in version 1.5.
Signal Details¶
- Parlatype.Waveviewer.signals.cursor_changed(waveviewer, position)¶
- Signal Name:
cursor-changed
- Flags:
- Parameters:
waveviewer (
Parlatype.Waveviewer
) – The object which received the signalposition (
int
) – the new position in stream in milliseconds
Signals that the cursor’s position was changed by the user.
- Parlatype.Waveviewer.signals.load_progress(waveviewer, progress)¶
- Signal Name:
load-progress
- Flags:
- Parameters:
waveviewer (
Parlatype.Waveviewer
) – The object which received the signalprogress (
float
) – the new progress state, ranging from 0.0 to 1.0
Indicates progress on a scale from 0.0 to 1.0. The value 0.0 is not emitted, the last signal (on success) is 1.0.
- Parlatype.Waveviewer.signals.play_toggled(waveviewer)¶
- Signal Name:
play-toggled
- Flags:
- Parameters:
waveviewer (
Parlatype.Waveviewer
) – The object which received the signal
Signals that the user requested to toggle play/pause.
- Parlatype.Waveviewer.signals.selection_changed(waveviewer)¶
- Signal Name:
selection-changed
- Flags:
- Parameters:
waveviewer (
Parlatype.Waveviewer
) – The object which received the signal
Signals that the selection was changed (or unselected) by the user. To query the new selection see
Parlatype.Waveviewer
:has-selection
,Parlatype.Waveviewer
:selection-start
andParlatype.Waveviewer
:selection-end
.
Property Details¶
- Parlatype.Waveviewer.props.fixed_cursor¶
-
If
True
, in follow-cursor mode the cursor is at a fixed position and the waveform is scrolling. IfFalse
the cursor is moving.If
Parlatype.Waveviewer
:follow-cursor
isFalse
, this has no effect.
- Parlatype.Waveviewer.props.follow_cursor¶
-
If the widget follows the cursor, it scrolls automatically to the cursor’s position. Note that the widget will change this property to
False
if the user scrolls the widget manually.
- Parlatype.Waveviewer.props.has_selection¶
- Parlatype.Waveviewer.props.playback_cursor¶
-
Current playback position in milliseconds. A value of -1 means an invalid or unknown position that will not be rendered.
- Parlatype.Waveviewer.props.pps¶
-
Current/requested resolution of waveform in pixels per second.
- Parlatype.Waveviewer.props.selection_end¶
-
End time of selection in milliseconds. If it’s equal to the start time, there is no selection. See also
Parlatype.Waveviewer
:has-selection
.
- Parlatype.Waveviewer.props.selection_start¶
-
Start time of selection in milliseconds. If it’s equal to the end time, there is no selection. See also
Parlatype.Waveviewer
:has-selection
.