librelist archives

« back to archive

Ask Open File

Ask Open File

From:
Roger Lovelock
Date:
2010-08-19 @ 06:13
Know you're all busy with Policeman - so no rush to reply. Was looking at 
some Shoebox apps and tried out fcards - just got a blank screen - so I 
extracted a simple usage case out as follows :-

Shoes.app(

:title => 'Smile @rT flash cards',

:width => 550,

:height => 250,

:resizable => false

) do

@file = ask_open_file


end

Displays the app screen, but not the open file dialog!

Roger

Re: [shoes] Ask Open File

From:
Cecil Coupe
Date:
2010-08-19 @ 07:04
In linux, the ask_dialog window covers over the shoes window specified.
Which is not user friendly, I agree. Close the dialog and the shoes
window is there.  Then again a script shouldn't pop up a file open when
started without some user feedback (buttons and such). That's what
viruses and less reputable websites do. Pop up a File dialog where
cancel and OK do the same thing.  

One can't tell if the ask_file_dialog belongs to the script or some
badness.
On Thu, 2010-08-19 at 16:13 +1000, Roger Lovelock wrote:
> Know you're all busy with Policeman - so no rush to reply. Was looking
> at some Shoebox apps and tried out fcards - just got a blank screen -
> so I extracted a simple usage case out as follows :-
>  
> Shoes.app(
> 
> :title => 'Smile @rT flash cards',
> 
> :width => 550,
> 
> :height => 250,
> 
> :resizable => false
> 
> ) do
> 
> @file = ask_open_file
> 
> end
> 
> Displays the app screen, but not the open file dialog!
> 
> Roger
> 
> 

Re: [shoes] Ask Open File

From:
Roger Lovelock
Date:
2010-08-19 @ 07:14
I am using Vista and Shoes 1503 - the dialog does not appear at all (I have 
tried moving the Shoes  window around on the screen to see if the dialog is 
underneath).

--------------------------------------------------
From: "Cecil Coupe" <ccoupe@cableone.net>
Sent: Thursday, August 19, 2010 5:04 PM
To: <shoes@librelist.com>
Subject: Re: [shoes] Ask Open File

> In linux, the ask_dialog window covers over the shoes window specified.
> Which is not user friendly, I agree. Close the dialog and the shoes
> window is there.  Then again a script shouldn't pop up a file open when
> started without some user feedback (buttons and such). That's what
> viruses and less reputable websites do. Pop up a File dialog where
> cancel and OK do the same thing.
>
> One can't tell if the ask_file_dialog belongs to the script or some
> badness.
> On Thu, 2010-08-19 at 16:13 +1000, Roger Lovelock wrote:
>> Know you're all busy with Policeman - so no rush to reply. Was looking
>> at some Shoebox apps and tried out fcards - just got a blank screen -
>> so I extracted a simple usage case out as follows :-
>>
>> Shoes.app(
>>
>> :title => 'Smile @rT flash cards',
>>
>> :width => 550,
>>
>> :height => 250,
>>
>> :resizable => false
>>
>> ) do
>>
>> @file = ask_open_file
>>
>> end
>>
>> Displays the app screen, but not the open file dialog!
>>
>> Roger
>>
>>
>
>
> 

Re: [shoes] Ask Open File

From:
ashbb
Date:
2010-08-19 @ 10:54
Hi Roger,

Umm,... I run the code with Shoes 0.r1510 on Windows XP laptop. But didn't
confirm your problem.

You wrote: just got a blank screen

If so, please try again.
The ask_open_file window should be opened before you get a blank screen
window.

Did you select the test file (stored your test code) twice?

ashbb

Re: [shoes] Ask Open File

From:
Roger Lovelock
Date:
2010-08-19 @ 11:05
Yes, I needed to click on the filename twice to get it to run. Then the 
window appeared - no sign of the open file dialog though, even when I 
moved the window around. I'm not using 1510 because of the black 
background problem. I must admit I have found it very difficult to go back
to 1503 - but I think I have removed all of the 1510 files now. One 
problem I do have is with my sqlite database app. When I run from Shoes it
opens my database OK, but when I package either an exe or a shy file then 
it runs OK, but does not open my database and read the tables ie its as if
no records are present(but no error) - there is a copy of my database in 
the same folder as the exe/shy files (its the same folder that I run the 
app from Shoes ie with the rb file. A bit strange!
Roger

From: ashbb 
Sent: Thursday, August 19, 2010 8:54 PM
To: shoes@librelist.com 
Subject: Re: [shoes] Ask Open File


Hi Roger,

Umm,... I run the code with Shoes 0.r1510 on Windows XP laptop. But didn't
confirm your problem.

You wrote: just got a blank screen

If so, please try again.
The ask_open_file window should be opened before you get a blank screen window.

Did you select the test file (stored your test code) twice?

ashbb 

Re: [shoes] Ask Open File

From:
ashbb
Date:
2010-08-19 @ 13:30
Hi Roger,

>  I'm not using 1510 because of the black background problem.
Sorry, we couldn't find the solution before WhyDay.

> when I package either an exe or a shy file then it runs OK,
> but does not open my database and read the tables
Umm,... I'm not sure what are you doing...

You mean:

- The simple-sqlite3.rb works well.
- You can pack simple-sqlite3.rb to simple-sqlite3.shy (or
simple-sqlite3.exe).
- But the simple-sqlite3.shy (or simple-sqlite3.exe) doesn't work.

Right?

ashbb

Re: [shoes] Ask Open File

From:
Roger Lovelock
Date:
2010-08-19 @ 22:22
Exactly the same problem with 1514 - running simple-sqlite3.rb just gives 
a blank window ie no output produced. Also, as before - the packager hangs
when trying to package a .shy file. Black background also present (known 
problem).


From: ashbb 
Sent: Thursday, August 19, 2010 11:30 PM
To: shoes@librelist.com 
Subject: Re: [shoes] Ask Open File


Hi Roger,

>Â  I'm not using 1510 because of the black background problem.
Sorry, we couldn't find the solution before WhyDay.

> when I package either an exe or a shy file then it runs OK, 
> but does not open my database and read the tables
Umm,... I'm not sure what are you doing...

You mean:

- The simple-sqlite3.rb works well.
- You can pack simple-sqlite3.rb to simple-sqlite3.shy (or simple-sqlite3.exe).
- But the simple-sqlite3.shy (or simple-sqlite3.exe) doesn't work.

Right?

ashbb

Re: [shoes] Ask Open File

From:
ashbb
Date:
2010-08-20 @ 16:05
Hi Roger,

simple-sqlite3.rb is a sample snippet.
It's not implemented the feature to delete sqlite3 database.

So, you have to delete simple-sqlite3.db by hand. :-P

I made simple-sqlite3.shy with Shoes-0.r1503. It works on my Windows 7.

Is there another Vista problem? Umm,....

ashbb

Re: [shoes] Ask Open File

From:
Roger Lovelock
Date:
2010-08-19 @ 21:32
Well - that's what I expected to happen (I was previously talking about 
trying to run my 'CRUD' program) - when I tried simple-sqlite3.rb it just 
gave me a blank screen. In addition when I tried to create a .shy file the
packaged just hung.
I suspect problems resulting from trying to remove 1510 to go back to 1503
- I'll try to remove everything again, install the new release and try 
again - I'll let you know how I go. Will a bit later as we have to go and 
meet a new grandson!
Roger



From: ashbb 
Sent: Thursday, August 19, 2010 11:30 PM
To: shoes@librelist.com 
Subject: Re: [shoes] Ask Open File


Hi Roger,

>Â  I'm not using 1510 because of the black background problem.
Sorry, we couldn't find the solution before WhyDay.

> when I package either an exe or a shy file then it runs OK, 
> but does not open my database and read the tables
Umm,... I'm not sure what are you doing...

You mean:

- The simple-sqlite3.rb works well.
- You can pack simple-sqlite3.rb to simple-sqlite3.shy (or simple-sqlite3.exe).
- But the simple-sqlite3.shy (or simple-sqlite3.exe) doesn't work.

Right?

ashbb