Re: Procs!

2009-07-27 Thread Cecil Coupe
Yet another reminder why Lisp scoping rules and my feeble lexical brain don't mesh. I have no opinion as to why or if it's a good thing (Tm) but it'll burn us old school non Lispers. On Mon, 2009-07-27 at 05:15 -0400, MenTaLguY wrote: I wasn't terribly clear. Let me rephrase -- if you do this:

Re: Is my function not working, or is it shoes?

2009-07-11 Thread Cecil Coupe
Hi, This may not help, but what I've done is something like this to enter a string @el = edit_line @outMB, :width = 40 do @outMB = @el.text # call your function here end Attach the block to the edit_line and don't worry about keypress (unless you really need key by key

Re: issues with ask_save_file and ask_open_file on Leopard

2009-06-30 Thread Cecil Coupe
I vaguely remember a huh? like you report. I don't have OS X anymore so I can't test. On Linux I use a construct like button Save As... do fn = ask_save_file if fn and fn.length 0 #puts Setting new file #{fn}

Re: Packaging Issues

2009-05-23 Thread Cecil Coupe
more about the ffmpeg stuff email me. Best, Noah On May 22, 2009, at 10:39 PM, Cecil Coupe wrote: It's difficult meta problem. I'm on Linux (Ubuntu 9.04) and I'd like a little shoes app that front ends ffmpeg. Except it has to front end the ffmpeg I have, not the one

Re: Packaging Issues

2009-05-22 Thread Cecil Coupe
It might be easier to debug and fix the problem than implement a workaround, IMHO. It looks like most of the action starts in lib/shoes/pack.rb - I don't have an OS X box anymore so I can't be very helpful. Might be an easy fix if you can find all the parts. On Fri, 2009-05-22 at 21:24 -0500,

Re: Packaging Issues

2009-05-22 Thread Cecil Coupe
could read the docs for binject. Where that pack.rb is on your system and which copy of shoes you are using if you have multiples... Just something to look at. --Cecil On Fri, 2009-05-22 at 21:00 -0600, Cecil Coupe wrote: It might be easier to debug and fix the problem than implement a workaround

Re: Packaging Issues

2009-05-22 Thread Cecil Coupe
will have a look and see how it goes. It might lead me to automating other aspects of the build process as well once I see how the packaging works. Thanks! Noah On May 22, 2009, at 8:44 PM, Cecil Coupe wrote: I hate to follow up my own message but pack.rb line 156 (my older version

Re: Library Dependencies

2009-03-15 Thread Cecil Coupe
If your Linux has a package manager that installs the dependencies compiled against the other libraries and kernel on your system, I'd use it. I wouldn't depend on the tar inside of a .deb to be good for you -- you'll never know where the problems are if by chance it should almost work. It's a

Re: Sqlite3 on ubuntu

2009-03-09 Thread Cecil Coupe
On Tue, 2009-03-10 at 12:23 +0800, niedh wrote: thanks to Mark Vander Voord I had already install the libsqlite3-dev and sqlite3-ruby when i use sqlite3 without shoes ,it works fine my ruby is not the apt-get version, I compiled from the source,is this the problem? Shoes ruby and gems are

Monospace Font

2009-01-03 Thread Cecil Coupe
Hi folks, I'm writing an app that loads and edits and saves some some text lines (CSV) to a file. I put up a Shoes stack, with a flow for each line in the file with a checkbox in front. Works fine. Until I use 'code' instead of 'para'. The text isn't displayed for 'code', yet no errors in the

Ne

2008-11-24 Thread Cecil Coupe
I hate when figure it out right after I ask for help. vist() creates a new Shoes object doesn't it? Sorry to bend the ear of the mailing list.

Re: Video/Audio in Shoes

2008-10-10 Thread Cecil Coupe
This isn't an answer, just something to try. Add a stack to your a height and width. Last I played with VLC and shoes(unbuntu), it won't play if it doesn't have screen real estate. I should file a bug but there were other problems of mine. --Cecil On Fri, 2008-10-10 at 02:05 -0400, Mike

Re: hinting for copy and paste?

2008-09-28 Thread Cecil Coupe
On Sun, 2008-09-28 at 23:20 -0500, _why wrote: On Sun, Sep 28, 2008 at 08:10:44PM -0700, Jeff Hodges wrote: I know Shoes writes directly to a canvas which makes this difficult, but is there any way to hint that a textblock should be copy and pastable? Or, perhaps more accurately, able to

Re: List messages arriving out of order

2008-09-25 Thread Cecil Coupe
On Fri, 2008-09-26 at 00:21 -0400, Seth Thomas Rasmussen wrote: I dunno about you guys, but I've had a handful or so of messages in various threads arriving out of order for me lately. The first message in the recent thread about presenting tabular data just hit me recently after I received

Re: problems with utf on os x ?

2008-09-21 Thread Cecil Coupe
I don't know how Shoes is supposed to handle Unicode, but doesn't Ruby not handle Unicode well or something? Unicode and Ruby is complicated. Ruby may (or may not) mishandle it. The choice of font's in Shoes and your choice of default font and your system's fallback mechanism for handling

Re: quirks in argv handling

2008-09-10 Thread Cecil Coupe
Shoes doesn't use your installed Ruby. It's its own thing, not an addition to your Ruby. A different, local, 'shoes' variety of Ruby with different rules. On Tue, 2008-09-09 at 22:53 -0700, Martin DeMello wrote: $ cat testargv.rb p ARGV $ shoes testargv.rb [testargv.rb] $ ruby

Re: quirks in argv handling

2008-09-10 Thread Cecil Coupe
switches (-h, --gem x y z ... ) that it needs to parse first. Being a cross platform GUI app, I'm wondering how the argument parsing should work in Shoes, in Windows. Actually, I'm wondering if it has to work at all. It is a GUI, no? --Cecil martin On Tue, Sep 9, 2008 at 11:38 PM, Cecil Coupe

Re: Shoes.setup problems with gems depending on hpricot (and/or perhaps other issues)

2008-08-24 Thread Cecil Coupe
FWIW, Here's how I deal with gems. One, I don't install shoes on my Linux box, I build from git and run it from the command line of a terminal app. That might not match what you want. There's a switch -g (or --gem ) on the shoes command line that allows gem commands to be passed and Shoes

Re: weird closure behaviour

2008-07-25 Thread Cecil Coupe
martin, From my experiments, there appears to be one (or two in Ubuntu) click handlers. The x,y are for the top Shoes window and not relative to the flow/stack that the handler is attached to. In that case two handlers in Linux is probably a bug. For your purpose (and mine), one handler sucks

Re: Missing Magic Triggers

2008-07-24 Thread Cecil Coupe
it myself, but would #repaint_all meet your needs? That would be nice, but from inside a widget's method I get a 'no method' error for repaint_all, but I know where to look now for my clues. -- pvande On Thu, Jul 24, 2008 at 8:59 PM, Cecil Coupe [EMAIL PROTECTED] wrote: Does anybody

Re: Missing Magic Triggers

2008-07-24 Thread Cecil Coupe
They aren't documented because I'm not happy with draw(). It can be severely misused. When I was writing the Cascade example, I kept running into awful recursion problems. Yep, I've seen those segfaults myself. I understand how 'draw' is a word that means something different to other

Re: Gem setup required?

2008-07-24 Thread Cecil Coupe
I'm not saying I know anything or understand Shoes/Gems interactions but wouldn't the 'other' scripts just need 'require rubygems' and then 'require foo'? Works for me but I install gems in Shoes from the command line 'shoes -g install x'. If you're running shoes from a not 'installed'

Looking for a Widget

2008-07-19 Thread Cecil Coupe
Instead of inventing my own, perhaps you have one to share that I could modify or inspect. I'm writing a Shoes app that kind of mimics iTunes or Rhythmbox music players. Not that anyone wants another music player. It's just an exercise to see how far I can push Shoes with my limited skills. I'm

Re: Doc dreams

2008-07-15 Thread Cecil Coupe
Awesome. I think. I'll need a hint on how to invoke the new magic. The magic word or key chord is? From the git pull I see that you've modified the files I would expect you'd have to. Just a gentle clue stick, _why. OK? --Cecil Completely with you on this. I've just checked in some

Re: Writing a Window manager

2008-07-15 Thread Cecil Coupe
If you know Ruby, you can read Python (or vice versa), enough to get the gist of what's going on. Hash is a python dictionary. Array is a python list, 'self' has to be explicitly added to class/method definitions because there's no @instance or @@class syntax. Python is quite readable though.

Re: Doc dreams

2008-07-14 Thread Cecil Coupe
for the target audience. --Cecil On Mon, 2008-07-14 at 21:34 -0600, Cecil Coupe wrote: A master inheritance chart with links would be very nice! It doesn't have to be searchable, that's a non-issue for that view of the API, imho. I don't know that my skills are up to the task so I won't volunteer

Re: Doc dreams

2008-07-14 Thread Cecil Coupe
. Fire up a irb console inline to try out the code as you're reading about it). -Josh On Jul 14, 2008, at 9:09 PM, Cecil Coupe wrote: Bad form to reply to my own message. Sorry. A shoes command-line option to generate Rdoc from the mythical introspecter. Kind of like $shoes

Doc dreams

2008-07-13 Thread Cecil Coupe
With all due respect for _why and the Manual and NKS, I'm a bit show me the reference manual. Who inherits from who? What methods and vars are exposed in each class? What overrides who? I'm just wired that way, I need that structure to understand. So I spent a few hours with rdoc on shoes/ruby.c

Scrollbars in Manual

2008-07-11 Thread Cecil Coupe
Using the Shoes manual, clicking in the scrollbar area doesn't move it up/down. Pageup/down keys have know effect. Dragging with the mouse does work, as does the scroll wheel. (Ubuntu 8.04)

Re: require 'cgi' == trouble

2008-07-07 Thread Cecil Coupe
When dealing with Shoes one needs to remember it's a self contained Ruby runtime, completely unrelated to whatever version of Ruby you have on your box or which gems you have installed. Shoes is it own environment. It's not full Ruby, it's only partial Ruby. It evals your script within the

Re: Unintuitive check's

2008-07-07 Thread Cecil Coupe
can imagine and all the control you desire. Even then, I don't think 'self' changes based on the event. On Mon, 2008-07-07 at 23:11 -0600, Cecil Coupe wrote: Because 'self' is Shoes. You run within Shoes. Think how it work work otherwise. On Tue, 2008-07-08 at 14:16 +1000, Bluebie, Jenna

Re: Rather smashing dialog

2008-07-05 Thread Cecil Coupe
Wouldn't you have to put the native shared library (.so, .dylib, what-ev) in a shoes accessible libload path? Its the back door to madness IMO, totally non portable, but sometimes setting the environment LD_LIBRARY_PATH properly won't screw up everything else on your system as well. Once bitten

User Preferences are not document settings

2008-07-04 Thread Cecil Coupe
Hi, With all due respect for chasers of coolness (we need you idealists) Applications preferences are different from serializing the users's meta data with the document's meta-data together. Not the same. It's completely application specific but that's up to you where the line is drawn. Or

Trial Balloon for Preferences Code

2008-07-04 Thread Cecil Coupe
I decided to do a little Ruby coding on preferences/config files for Shoes scripts. It's far from perfect but its a reasonable start. It works for me on Ubuntu Linux 8.04. The Windows and OS X parts aren't coded (your help is solicited - can't be that hard if you know where the files should go)

Re: DRAFT 1: bug day - Shoes Code-a-thons on July 11th and July 25th

2008-06-26 Thread Cecil Coupe
-- FOR IMMEDIATE RELEASE Shoes 24-hour Worldwide Code-a-thons on July 11th and July 25th [snip] That looks pretty good to me. You got most, if not all of the goals translated into PR-speak that developers will read. Not easy to do. Well done. --Cecil

Re: Mem Leaks. Pegged Cpu

2008-05-16 Thread Cecil Coupe
On Fri, 2008-05-16 at 17:21 -0500, _why wrote: Okay, discovered this was causing by too much repositioning of the controls. A fix is up at github. Pleasingly enough, this also fixed the open/save dialogs. _why It works for me. Thank you.