Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c677fa9

Browse files
committed
Remove function menu from wxGTK mathtext example
GTK no longer defaults to showing images in menus, unless they are set to important. However, wx does not appear to expose that setting, so it just produces a menu of blank options.
1 parent 800703a commit c677fa9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/user_interfaces/mathtext_wx_sgskip.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import numpy as np
1616
import wx
1717

18-
IS_GTK = 'wxGTK' in wx.PlatformInfo
1918
IS_WIN = 'wxMSW' in wx.PlatformInfo
2019

2120

@@ -66,7 +65,7 @@ def __init__(self, parent, title):
6665
menuBar.Append(menu, "&File")
6766
self.Bind(wx.EVT_MENU, self.OnClose, m_exit)
6867

69-
if IS_GTK or IS_WIN:
68+
if IS_WIN:
7069
# Equation Menu
7170
menu = wx.Menu()
7271
for i, (mt, func) in enumerate(functions):

0 commit comments

Comments
 (0)