[Felix-language] GUI

2015-02-22 Thread john skaller
I have finally found a bug causing Felix GUI code to crash on resizing a window. It turns out this is a bug in SDL itself. +1 to Felix. -1 to C. -- john skaller skal...@users.sourceforge.net http://felix-lang.org --

[Felix-language] GUI issue: finding fonts

2015-01-27 Thread john skaller
I've just added some tutorial test cases for the Felix GUI. They're a bit interesting because they use fthreads and schannels. However there is an issue, finding a TTF font. At the moment the tuts use fun OSX_dflt_font() => "/Library/Fonts/Courier New.ttf"; in file src/lib/gui/font.fl

[Felix-language] Gui support and packages (part 2)

2015-01-26 Thread john skaller
> > The config files are: > > ~/felix>ls build/release/host/config/sdl2* > sdl2.fpcsdl2_image.fpc sdl2_ttf.fpc > > On my OSX 10.6.8 MacbookPro: Currently, Felix build makes these config files, however you may need to hand edit them. At the moment, if you do that, next build/install w

[Felix-language] Gui support and packages (part 1)

2015-01-26 Thread john skaller
I am making some tests in the tutorial for the Felix GUI. Yes, Felix has a GUI "built in". Currently you can run "make guitest", be aware some of the tests are interactive and require a response. It's the nature of GUI's I'm afraid. These tests currently run directly out of the repository, not t

[Felix-language] GUI: realtime execution tracing

2007-09-29 Thread skaller
The GUI now does realtime execution tracing. At present you have to add commands like: trace dummyid "dummy string"; to your program, then use the shell prompt: bin/flx.py --force -DFLX_ENABLE_TRACE --test nbody 20 to set the -DFLX_ENABLE_TRACE macro on (hit RETURN not the RUN

Re: [Felix-language] Gui

2007-09-28 Thread skaller
On Fri, 2007-09-28 at 17:51 +1000, skaller wrote: > On Thu, 2007-09-27 at 19:19 -0700, Erick Tryzelaar wrote: > > On 9/27/07, Erick Tryzelaar <[EMAIL PROTECTED]> wrote: Hm, also get "no instance of _tk" problem: Exception exceptions.AttributeError: "StringVar instance has no attribute '_tk'" in >

Re: [Felix-language] Gui

2007-09-28 Thread skaller
On Thu, 2007-09-27 at 19:19 -0700, Erick Tryzelaar wrote: > On 9/27/07, Erick Tryzelaar <[EMAIL PROTECTED]> wrote: > > May just be more portable. The native mac python can open it up now. > The colors are nicer too :) One odd thing is that i can't move the > window around. If i have some time, i'

Re: [Felix-language] Gui

2007-09-27 Thread Erick Tryzelaar
On 9/27/07, Erick Tryzelaar <[EMAIL PROTECTED]> wrote: > On 9/27/07, skaller <[EMAIL PROTECTED]> wrote: > > > > ./bin/gflx.py > > > Exception exceptions.AttributeError: "StringVar instance has no > > > attribute '_tk'" in > > > ignored > > > Traceback (most recent call last): > > > File "./bin/g

Re: [Felix-language] Gui

2007-09-27 Thread skaller
On Thu, 2007-09-27 at 18:15 -0700, Erick Tryzelaar wrote: > > > TypeError: __init__() got an unexpected keyword argument 'name' > > > > Do you have Tcl/Tk installed? > > > That seems to be the case. What's strange though is that on my mac, i > can only get it to work with my python 2.5 build. It

Re: [Felix-language] Gui

2007-09-27 Thread skaller
On Thu, 2007-09-27 at 18:15 -0700, Erick Tryzelaar wrote: > On 9/27/07, skaller <[EMAIL PROTECTED]> wrote: > > > > ./bin/gflx.py > > > Exception exceptions.AttributeError: "StringVar instance has no > > > attribute '_tk'" in > > > ignored > > > Traceback (most recent call last): > > > File "./bi

Re: [Felix-language] Gui

2007-09-27 Thread Erick Tryzelaar
On 9/27/07, skaller <[EMAIL PROTECTED]> wrote: > > > ./bin/gflx.py > > Exception exceptions.AttributeError: "StringVar instance has no > > attribute '_tk'" in > > ignored > > Traceback (most recent call last): > > File "./bin/gflx.py", line 543, in ? > > app = App(root,initfile) > > File "

Re: [Felix-language] Gui

2007-09-27 Thread skaller
On Thu, 2007-09-27 at 15:00 -0700, Erick Tryzelaar wrote: > On 9/27/07, skaller <[EMAIL PROTECTED]> wrote: > > Has anyone tried the gui: > > Unfortunately, it's not starting up for me: > > > ./bin/gflx.py > Exception exceptions.AttributeError: "StringVar instance has no > attribute '_tk'" in > i

Re: [Felix-language] Gui

2007-09-27 Thread Erick Tryzelaar
On 9/27/07, skaller <[EMAIL PROTECTED]> wrote: > Has anyone tried the gui: Unfortunately, it's not starting up for me: > ./bin/gflx.py Exception exceptions.AttributeError: "StringVar instance has no attribute '_tk'" in > ignored Traceback (most recent call last): File "./bin/gflx.py", line 543,

[Felix-language] Gui

2007-09-27 Thread skaller
Has anyone tried the gui: python bin/gflx.py It has cute features. Try this, in Filename prompt: * clear the entry * type 'tut' * press / * press END * press / until 'tutorial' is displayed * press END * press tab to scan all the tu

Re: [Felix-language] GUI gflx

2007-09-24 Thread Erick Tryzelaar
On 9/24/07, skaller <[EMAIL PROTECTED]> wrote: > That copies permissions, owenership, etc .. is that correct > for an install? I suspect the owner should change to > root? You're right, it's not a great replacement for /usr/bin/install. > > And maybe a --pre-compile option that generates everythi

Re: [Felix-language] GUI gflx

2007-09-24 Thread skaller
On Mon, 2007-09-24 at 15:37 -0700, Erick Tryzelaar wrote: > On 9/24/07, skaller <[EMAIL PROTECTED]> wrote: > > There are two very bad bugs in installed Felix: the > > install process doesn't copy the lib directory properly > > because it has subdirectories now (Unix SUCKS!). > > Now that we can us

Re: [Felix-language] GUI gflx

2007-09-24 Thread Erick Tryzelaar
On 9/24/07, skaller <[EMAIL PROTECTED]> wrote: > There are two very bad bugs in installed Felix: the > install process doesn't copy the lib directory properly > because it has subdirectories now (Unix SUCKS!). Now that we can use python 2.x, we could use shutil.copytree to do the copying/installin

[Felix-language] GUI gflx

2007-09-24 Thread skaller
Felix now has a (gasp!) GUI interface, implemented using Python and Tkinter. AFAIK that works on most platforms, since Python comes with a built-in Tcl/Tk system? At the moment there are GLARING colours which will go away later, just there so I can figure out the Tk pack manager. So you get two m