Remove Python GI API version warnings
- reported in Clock-19 testing.
This commit is contained in:
parent
2c3d1d0707
commit
c26c902dc7
@ -18,6 +18,9 @@ import os
|
||||
import logging
|
||||
from gettext import gettext as _
|
||||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
|
||||
from gi.repository import Gio
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
@ -25,6 +28,7 @@ from gi.repository import GObject
|
||||
|
||||
_HAS_GST = True
|
||||
try:
|
||||
gi.require_version('Gst', '1.0')
|
||||
from gi.repository import Gst
|
||||
Gst.init(None)
|
||||
Gst.parse_launch('espeak')
|
||||
|
Loading…
Reference in New Issue
Block a user