Skip to content

Commit

Permalink
Merge pull request #1 from hinxx/string-as-bytes
Browse files Browse the repository at this point in the history
wrap str in _bytes()
  • Loading branch information
KinoxKlark committed Mar 23, 2021
2 parents f31188d + 04bb87e commit 3b1c177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imgui/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3245,11 +3245,11 @@ def show_metrics_window(closable=False):


def show_style_selector(str label):
return cimgui.ShowStyleSelector(label)
return cimgui.ShowStyleSelector(_bytes(label))


def show_font_selector(str label):
cimgui.ShowStyleSelector(label)
cimgui.ShowFontSelector(_bytes(label))


def begin(str label, closable=False, cimgui.ImGuiWindowFlags flags=0):
Expand Down

0 comments on commit 3b1c177

Please sign in to comment.