parent
3105db35a4
commit
03e847d8a1
1 changed files with 5 additions and 0 deletions
|
|
@ -321,6 +321,11 @@ PyGObject embedding
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
# This is necessary since like Qt, Gtk stomps over the locale settings needed by libmpv.
|
||||||
|
# Like with Qt, this needs to happen after importing Gtk but before creating the first mpv.MPV instance.
|
||||||
|
import locale
|
||||||
|
locale.setlocale(locale.LC_NUMERIC, 'C')
|
||||||
|
|
||||||
application = MainClass()
|
application = MainClass()
|
||||||
Gtk.main()
|
Gtk.main()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue