On Fri, Aug 9, 2013 at 10:11 PM, Kevin Ar18 <[email protected]> wrote:
> Please ignore my previous email. Google groups rejected my email when I > didn't confirm subscription, and then I forgot to re-add the subject when I > reposted. :( again, sorry > > > DISCLAIMER: > I am NOT asking anyone to make this for me; I just want to find out if > something like this has already been made, before I take all the time to > code it from scratch (or pick another option). > > > Ok, I'll admit that this is the epitome of laziness, but I was wondering > if anyone has made or released a very simple text editor (made in pyglet) > -- which I could then use as a starting point in making a simple app? > > Basically, I want a small note-taking program, but I want to modify the > save and load so that it stores the files in a certain way. > > The simplest solution would be to find a very simple open source notepad > and edit the save and load functions. :) But... I didn't really want to go > with C++ right now. Another option is wxwidgets or Python ctypes+the win32 > api, but I didn't like that route, so figured I might try pyglet. :) > > Since it's just a simple little program for me and a few other people to > use, if almost feels like a waste to spend so much time writing a simple > working textfield when the core program might take even less time ... and > then all my work only benefits 2 or 3 people. :( > > So... before I go "reinventing the wheel" I thought I might ask first: > Has anyone made a simple notepad-style program ... or even just a > feature-complete textfield? > ... and if so, is it available anywhere online under something like > BSD,MIT,PublicDomain that allows me to use it? > > By feature-complete text editing, I mean all the features you would expect > from an OS native textfield: > * cursor placement with mouse/keyboard > * wordwrap > * a working scrollbar (for long documents) > * clipboard support (aka copy & paste) > * selection of text (so you can copy & paste) > * the ability to read/write the data as seen in the textfield so I can > save and load it from a file > > I realize that pyglet separates handling of events from the displaying of > textfields, but I think you get the idea. > > On another note: would something like this actually be useful to anyone > else? If I do have to go about writing it all from scratch, it might make > it more fun if I could actually make something that other people would > benefit from (although be warned, don't expect great code, especially since > I've never used pyglet's API before). > Pyglet isn't really the right sort of framework to develop a text editor in - most text editors don't require hardware-accelerated OpenGL visuals, and they typically do require a fairly rich widget set. You'd probably be better off looking at a full GUI framework, such as QT ( http://qt-project.org/wiki/PySide), or Kivy (http://kivy.org). -- Tristam MacDonald Software Development Engineer, Amazon.com http://swiftcoder.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/groups/opt_out.
