0 Members and 1 Guest are viewing this topic.
ephan: Ah, sorry, didn't notice that. I think I'll checkout the repository when I want to try it Also, you could try to add an ignore for .pyc files, since you probably don't want them in the repo.
Awesome stuff! For some reason, I've never figured out how to make my text control as fancy as that...
I would still like a CLI only version, even if it's just importing the decoding library and calling it.
== Add option to detokenize into Axe OR Basic tokens. And as a plus, a menu option to instantly switch tokens to and from Axe!
== Solving the "token vs. letter" problem by catching keyboard and mouse input to avoid positioning the cursor in the middle of a token, and maybe coloring it as well? (optional, but pretty cool, and you guys will be the only one who has done it successfully... if you can, that is.) This will require a different file format specific to Croquette, like 8xpxml to distinguish letters from tokens.
== Intellisense Sounds insane, but my theory of Intellisense is that it's just a non-focused wxFrame, with a wxListBox inside it. If you guys manage to do it, you will gain quite a bit of notoriety from the wxWidgets community. (Again, this is optional, but something to aim for if you can do it! ) Also include a help box - something like VC++/VB, where they show a yellow box as you type telling you how to use the command.
ephan is using an awesomesauce special text editor thingie specially designed for code.
That should be easy. For now, just run 'console.py' (get the version from the repository, not the downloads, which has a few bugs).
That should be pretty easy.Actually, even though Croquette is supposed to only work with Axe, it'll still convert TI-Basic tokens anyways. I don't encourage it (due to code-readability reasons), but you can mix and match Axe and Basic tokens freely, and still have it convert.We'll look into adding a menu option for fully switching.
Quote == Solving the "token vs. letter" problem by catching keyboard and mouse input to avoid positioning the cursor in the middle of a token, and maybe coloring it as well? (optional, but pretty cool, and you guys will be the only one who has done it successfully... if you can, that is.) This will require a different file format specific to Croquette, like 8xpxml to distinguish letters from tokens.Hmm. This one might be a bit trickier.
@ephan: doesn't wx.stc come with a bunch of autocompletion methods?
Oh, cool! Yeah, the core code is pretty sophisticated - I know there's support, just no GUI option for it yet.
Progress report:Autocompletion is now working! Hooray!Converting Axe to TI-Basic tokens (and vice versa) is now supported too.I feel slightly uncomfortable with the code I wrote though (I feel like I re-invented too many wheels), so we might swap it out with what ephan used in his other project.
Alberthrocks, I am sorry but we're not using C++ for any part of the GUI, this is a pure Python project.
class RedButton(wx.Button): def __init__(self, *a, **k): wx.Button.__init__(self, *a, **k) self.SetBackgroundColour('RED') # more customization here
Every word that the user writes gets added to the list (a temporary list, it's over when the file is closed). Why? Because a lot of times we need to write the same thing more than once. In Axe, it's not so usual, because we don't have long variable names, but it's still useful sometimes with strings and commnts.