Skip to content

Commit 71495c1

Browse files
committed
only check for gi module in pygui_works(:gtk3), so as not to trigger the warning for not specifying a Gtk version
1 parent c1f5fb2 commit 71495c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/gui.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222
pygui_works(gui::Symbol) = gui == :default ||
2323
((gui == :wx && pyexists("wx")) ||
2424
(gui == :gtk && pyexists("gtk")) ||
25-
(gui == :gtk3 && pyexists("gi.repository.Gtk")) ||
25+
(gui == :gtk3 && pyexists("gi")) ||
2626
(gui == :tk && pyexists(tkinter_name())) ||
2727
(gui == :qt_pyqt4 && pyexists("PyQt4")) ||
2828
(gui == :qt_pyside && pyexists("PySide")) ||
@@ -32,7 +32,7 @@ pygui_works(gui::Symbol) = gui == :default ||
3232
"""
3333
pygui()
3434
35-
Return the current GUI toolkit as a symbol.
35+
Return the current GUI toolkit as a symbol.
3636
"""
3737
function pygui()
3838
global gui
@@ -158,9 +158,9 @@ const eventloops = Dict{Symbol,Timer}()
158158
"""
159159
pygui_start(gui::Symbol = pygui())
160160
161-
Start the event loop of a certain toolkit.
161+
Start the event loop of a certain toolkit.
162162
163-
The argument `gui` defaults to the current default GUI, but it could be `:wx`, `:gtk`, `:gtk3`, `:tk`, or `:qt`.
163+
The argument `gui` defaults to the current default GUI, but it could be `:wx`, `:gtk`, `:gtk3`, `:tk`, or `:qt`.
164164
165165
"""
166166
function pygui_start(gui::Symbol=pygui(), sec::Real=50e-3)
@@ -194,7 +194,7 @@ end
194194
"""
195195
pygui_stop(gui::Symbol = pygui())
196196
197-
Stop any running event loop for gui. The `gui` argument defaults to current default GUI.
197+
Stop any running event loop for gui. The `gui` argument defaults to current default GUI.
198198
199199
"""
200200
function pygui_stop(gui::Symbol=pygui())

0 commit comments

Comments
 (0)