Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Won't start after changing language to hebrew/he #135

Closed
jNullj opened this issue Mar 28, 2021 · 0 comments
Closed

Won't start after changing language to hebrew/he #135

jNullj opened this issue Mar 28, 2021 · 0 comments

Comments

@jNullj
Copy link
Contributor

jNullj commented Mar 28, 2021

Changed language to he, app won't start, getting this error:

[user@hostname ~]$ mcomix
Traceback (most recent call last):
  File "/usr/bin/mcomix", line 33, in <module>
    mcomix.run.run()
  File "/usr/share/mcomix/mcomix/run.py", line 198, in run
    Gtk.widget_set_default_direction(Gtk.TextDirection.RTL)
  File "/usr/lib/python3.9/site-packages/gi/overrides/__init__.py", line 32, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python3.9/site-packages/gi/module.py", line 123, in __getattr__
    raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Gtk' object has no attribute 'widget_set_default_direction'
jNullj added a commit to jNullj/mcomix3 that referenced this issue Mar 29, 2021
An old syntax thats is not supported by PyGObject was used to set default text direction as RTL in RTL language.
Updated based on the current docs for PyGObject 
found here https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Widget.html#Gtk.Widget.set_direction
Tested on archlinux.

fixes issue multiSnow#135
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant