Status of the development

Home Forums cherrytree Status of the development

This topic contains 5 replies, has 4 voices, and was last updated by  AntiNSA 3 days, 22 hours ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #124297

    giuspen
    Moderator

    Dear cherrytree users, this is to update you on what I’m working on and what are the plans for the near future.
    The library that cherrytree is currently using, pygtk (python2 and gtk2 static bindings) is old, unsupported and causing more and more problems as new versions of linux and windows operative systems are released.
    For this reason, after releasing 0.38.0, I put all my efforts to the porting to python3 and gtk3, also known as pygobject or pygi (see https://wiki.gnome.org/Projects/PyGObject/IntrospectionPorting).
    The development is happening on the git branch named ‘pygi’.
    At the moment I’m stuck on a blocking issue that is the lack of availability via python of a key function for cherrytree, gtk_clipboard_set_with_data (), (https://developer.gnome.org/gtk3/stable/gtk3-Clipboards.html#gtk-clipboard-set-with-data)
    I tried to use a binding package from sugarlabs https://github.com/sugarlabs/sugar/commit/b9707272f752a0fda35b3898761ab037fd5f95ac SugarExt.clipboard_set_with_data() but that doesn’t seem to work, or at least I failed to have it working in ubuntu 16.04 LTS and package gir1.2-sugarext-1.0.
    I actually got stuck on the same issue in 2011 (see http://python.6.x6.nabble.com/pygtk2-to-pygobject-introspection-td1941553.html) when for the first time I attempted the porting, and after 6 years still I don’t see a solution.
    Basically without this function available, the copy/paste of rich text doesn’t work and only the plain text is available, all the formatting is lost.
    Any help from developers in the pygi branch would be highly appreciated.

    #124300

    AlanWalker
    Member

    Were you to learn enough C, is information and functionality within Python3 available that would allow you to code your own “gtk_clipboard_set_with_data ()”?

    Is it possible?

    If so, I’d imagine that similar issues in future releases of GTK would be more easily met.

    I also imagine that such an effort would require learning a debugging platform for use in tracing 0.38.0’s execution.

    Elsewhere, I’ve said it before, and I’ll say it again… Thank you for cherrytree.

    • This reply was modified 1 week, 6 days ago by  AlanWalker.
    #124302

    paul
    Member

    Have you ever considered to move from GTK to Qt ?

    PyQT is a popular Python binding for QT. QT seems more stable, have more features and has a lot better cross-platform support.

    The developers of my favorite Linux distribution(Solus OS) are moving Budgie(the desktop environment) from GTK to QT, because of the issue with GTK.

    I read that some time ago even Linus moved his app from GTK to QT and also other important applications.

    I found copy/paste operations in QT: http://doc.qt.io/qt-4.8/qclipboard.html and the python binding: http://pyqt.sourceforge.net/Docs/PyQt4/qclipboard.html

    I never used GTK and also I didn’t do any serious app with QT, my opinion is based only on others experiences and news.

    • This reply was modified 1 week, 4 days ago by  paul.
    • This reply was modified 1 week, 4 days ago by  paul.
    • This reply was modified 1 week, 4 days ago by  paul.
    #124306

    giuspen
    Moderator

    In the last days I’ve indeed been thinking about a migration to PyQt5. I actually know QT since I already worked for years in QT4 via both C++ and Python and I know how good it is.

    I exclude taking care personally of the missing bindings between gtk3 and python because that widens too much the effort, keeping cherrytree up is at the moment all I can take care of in my free time.

    I considered porting to gtkmm3 (so just python to C++) since I already developed in gtkmm3 but then I decided that because of the limited free time I must stick with python or I won’t be able to keep up

    I will update on the forum about the status of the porting…

    #124307

    giuspen
    Moderator

    in the meanwhile here is the bug I raised: https://bugzilla.gnome.org/show_bug.cgi?id=782595

    #124313

    AntiNSA
    Member

    Good luck I believ3e in you. IO have spent hujndreds of hours developing a notebook for my students based on your program, and appreciate everything. https://www.dropbox.com/s/dm6kh773cnr9tol/TEAM%20ALL%20TEACHER%20V10.ctb?dl=0 here is what I am working on…. thanks for everything….

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.