First, I presume this is just for for personal learning, otherwise just use Emacs or Vim.
The next question then is, what do you want to learn? If it's GUI programming, fair enough. Otherwise, curses may be a better way to get characters on screen (especially for ssh access). If it *is* GUI programming you're interested in, I've been revisiting Tk lately, in particular working through the Python examples in https://tkdocs.com/tutorial/ . People may complain, but I think it looks fine.
If on the other hand it's C or C++ you want to learn, I'd actually do a text UI using curses (which would yield a more flexible editor for things like ssh access in the end). But I'm also on a Quixotic crusade to wean everyone off unsafe languages like C or C++. I like D myself.
I'd recommend against trying to learn two things in the same project.