Skip to content

Markdown not shown on Linux #83

Open

Description

@CsatiZoltan

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.

Activity

  1. CsatiZoltan commented on Feb 17, 2020

    @CsatiZoltan
    ContributorAuthor

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

  2. yxdragon commented on Feb 17, 2020

    @yxdragon
    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?

  3. CsatiZoltan commented on Feb 17, 2020

    @CsatiZoltan
    ContributorAuthor

    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.

  4. yxdragon commented on Feb 18, 2020

    @yxdragon
    Member

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

  5. yxdragon commented on Feb 21, 2020

    @yxdragon
    Member

    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.

  6. CsatiZoltan commented on Feb 21, 2020

    @CsatiZoltan
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions