Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown not shown on Linux #83

Open
CsatiZoltan opened this issue Feb 17, 2020 · 6 comments
Open

Markdown not shown on Linux #83

CsatiZoltan opened this issue Feb 17, 2020 · 6 comments

Comments

@CsatiZoltan
Copy link
Contributor

Markdown files are not rendered on Linux. The title of the wxwidgets window is shown but not the content. No exception is thrown. I observed that both the LoadURL method

if url != '': self.wv.LoadURL(url)
and the SetPage method
else: self.wv.SetPage(cont, url)
have no effect.


I am not sure whether it's related but clicking on the icons (Snap, Load, >>, and the user-defined buttons) in a Workflow has no effect, as if the callback was not called. However, the mouse-over works: the documentation box is updated.

@CsatiZoltan
Copy link
Contributor Author

I confirm that both of these issues persist on Linux but not on Windows. This must be an issue with wxpython.

@yxdragon
Copy link
Member

I did not bind any event on "Snap, Load, >>" yet, [snap] is designed to snap the current status, and [load] to reload the status snapped befor.

about the markdown not show on linux. may be because the 'math supportting' befor, I found the js did not run withing the SetPage, So I write the html to a file (in imagepy/data/index.html, and delete it when form loaded). so does your path need a sudo?

@CsatiZoltan
Copy link
Contributor Author

It's OK that there is no action for Snap, Load and >>, but there is also no effect (on Linux) when clicking on the button created via the .wf file.

Yes, I observed that you write into imagepy/data/index.html, but the file is successfully created -- I cheked. Also, my path is in /home, where no sudo is needed.

@yxdragon
Copy link
Member

I would have a look when I use linux next time.

@yxdragon
Copy link
Member

yxdragon commented Feb 21, 2020

I test markdown works on Mac. did you install python-markdown-math?
try this wxpython's webview demo if it is OK, tell me. and If this does not work, give an issue to the wxphoenix.

@CsatiZoltan
Copy link
Contributor Author

Unfortunately, I couldn't try it because the demo file throws an error:

'WebView' has no attribute 'MSWSetEmulationLevel'

This is because I have wxPython version 4.0.7.post2, and MSWSetEmulationLevel requires version 4.1. at least: wxWidgets/Phoenix#1434 (comment)
No conda repository contains 4.1. and the existing wheels are not compatible with my system. Installing wyPython from the sources seems to be painful. What do you recommend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants