Skip to content

RuntimeError: Gui: an instance must be created #12

@qkasriel1

Description

@qkasriel1

Même avec le minimum:

import kandinsky 
kandinsky.fill_rect(0, 0, 10, 10, kandinsky.color(0, 0, 0))

Ce module ne tourne pas, c'est presque certainement ma faute. J'ai cette erreur:
Traceback (most recent call last):
File "/Users/qka/Downloads/Python projects/temp", line 2, in
kandinsky.fill_rect(0, 0, 10, 10, kandinsky.color(0, 0, 0))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/kandinsky/init.py", line 69, in color
color, err = __Core.event_fire(__Core.color,r, g, b)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/kandinsky/util/mac_patcher.py", line 39, in Core_event_fire
if not self.stopped: Gui.refresh()
^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/kandinsky/util/mac_patcher.py", line 86, in Gui_refresh
Gui.created()
File "/opt/anaconda3/lib/python3.11/site-packages/kandinsky/util/stuff/gui.py", line 36, in created
if not Gui.tkmaster: raise RuntimeError("Gui: an instance must be created")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Gui: an instance must be created

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions