Skip to main content

Ralsina.Me — Roberto Alsina's website

Refactoring and modularizing

I need to do it, that is.

I am hack­ing the re­struc­tured text ed­i­tor out of Not­ty, so it can be used in oth­er places.

The bad news, of course, is that be­cause I did­n´t do it at the be­gin­ning, the cur­rent im­ple­men­ta­tion is like an inkblot run­ning through the rest of the code, taint­ing ev­ery­thing, which is hard to re­move.

Af­ter that, I have to do the same thing with the "tree-thing-that-­drags-­drop­s-and-­knows-how-­to-save-it­self" (T­M), and I will have three rather pow­er­ful wid­gets (Py­TextBrows­er is the third: a QTextBrows­er that does HTTP and im­ages, you can get that one al­ready).

Maybe I should turn these in­to some sort of pack­age, too.