Anybody know of a good way to package Python code as a desktop app?
Offline
technoboy10 wrote:
Anybody know of a good way to package Python code as a desktop app?
Platypus will do it for the Mac, I think. Dunno about the others.
EDIT: ... but I'm not sure it actually includes Python in with the app unless you tell it to.
Last edited by bharvey (2013-04-19 22:21:11)
Offline
bharvey wrote:
A friend of mine in college once decided to live on a 28-hour day because 28*6=24*7 and by rotating phase he'd be awake at the same time as each of his friends at least once in the week.
Yeah, xkcd mentioned something like that. (Was your friend eventually driven as stark raving mad as the title text claims? )
Offline
How sleepy do you get at night? I usually call it quits once I find myself refreshing my email/the Scratch Forums more than actually coding.
(I just took a self-imposed 36 hour computer break, and ended up spending the day reading xkcd on my iPad, playing Cut the Rope, watching TV and walking around in circles. I tried to play badminton with my dad, but the shuttle fell down and I got more exercise taking the stairs to get it than actually playing. I think that's a bad thing. )
Offline
I finished my (prototype for a) text-based Snap! language: https://googledrive.com/host/0B8jDsHSM5 … 0snap.html
Tell me if there are any spelling mistakes in the syntax explanation or bugs in the actual program.
Last edited by joefarebrother (2013-04-20 03:37:19)
Offline
bharvey wrote:
I wasn't always as sensible as I am today.
MathWizz wrote:
This is really random
Weird O_o
Hardmath123 wrote:
How sleepy do you get at night?
It varies — usually past about 11ish I realise I'm making ridiculously stupid mistakes, and have to give up. But the other night I stayed up 'til 3am hacking on kurt quite happily (though it was really trivial interface stuff, just copying attributes of kurt 1 objects onto kurt 2 ones and back).
I've heard night is better because there are no distractions. But I'm not sure 3am every night is maintainable. Any tips for staying awake the next morning, other than coffee?
I just took a self-imposed 36 hour computer break...
I gave up worrying about it long ago...
`
technoboy10 wrote:
Anybody know of a good way to package Python code as a desktop app?
Which platform? There's Py2EXE for Windows, and Py2app for Mac, I think.
Offline
joefarebrother wrote:
mistakes in the syntax explanation
When you talk (twice) about how to get a backslash into a value, you say "escape it twice." I'm guessing you probably mean "enter it twice." Escaping twice would mean a total of three backslashes!
Otherwise this looks very cool.
Offline
bharvey wrote:
When you talk (twice) about how to get a backslash into a value, you say "escape it twice." I'm guessing you probably mean "enter it twice." Escaping twice would mean a total of three backslashes!
Ok, I'll fix that when I'm using my computer (I'm posting from w phone right now)
Otherwise this looks very cool.
Thanks!
Offline
I felt like some easy coding, so I made a version of scratchblocks2 with Snap! blocks. It even has multi-arg arrows on the "list" and "script variables" blocks, for no very good reason! And I still haven't figured out how to do fancy things like rings; I need to have a good look at joefarebrother's prototype
@Technoboy10 I saw you were thinking about making a snapblocks fork! If you like, I'll push this stuff to Github for you to finish up, and we can have it in scratchblocks2 as a hidden option — I'm thinking a comment at the beginning to enable "Snap! mode":
// Snap!
EDIT: note that the screenshot shows a dropdown inside a custom block, which I don't believe Snap! even allows...
Last edited by blob8108 (2013-04-21 11:13:17)
Offline
Can't you do some magic and get sharp corners on the booleans? Please?
EDIT: Remember, I got pure CSS hexagons for the ill-fated Hex competition.
Last edited by Hardmath123 (2013-04-21 11:50:41)
Offline
Hardmath123 wrote:
Can't you do some magic and get sharp corners on the booleans?
I... tried... -_-
EDIT: so, yeah: if you can do it, go ahead! The DOM elements do actually have a "boolean" class, so all you need to do is modify the CSS
Last edited by blob8108 (2013-04-21 13:26:03)
Offline
technoboy10 wrote:
@blob Ok, cool!
Okay, here you go. At the moment it has the following changes from master:
* the snap.html page loads snap.txt and replaces the Scratch ones using the scratchblocks2.blocks interface
* the parser accepts a "// Snap!" comment on the first line, which turns obsolete blocks into grey ones
* blocks tagged ## -multi-arg are shown with the little < > arrows
Ideally:
a) the blocks in snap.txt would be moved into scratchblocks2.js, but only loaded if we're in "Snap! mode"
b) there would be a "Snap! mode"
Have fun!
Offline
That's huge! I haven't seen nth-last-child used before…
Offline
Hardmath123 wrote:
That's huge!
What's huge? And heh, nth-last-child wasn't actually the right fix anyway
Offline
blob8108 wrote:
And I still haven't figured out how to do fancy things like rings; I need to have a good look at joefarebrother's prototype
I used blocks lambda, lambda!, and lambda? that turn into rings.
Offline
blob8108 wrote:
Hardmath123 wrote:
That's huge!
What's huge? And heh, nth-last-child wasn't actually the right fix anyway
That was in the context of "easy coding"…
Offline
Hardmath123 wrote:
blob8108 wrote:
Hardmath123 wrote:
That's huge!
What's huge?
That was in the context of "easy coding"…
Still not sure I follow...
Offline
Jens wrote:
bharvey wrote:
If they really wanted to teach kids something relevant about the Constitution, they'd teach that we don't have one any more. (...)
Instead they teach how great everything is and how you should just wave the flag and not criticize.See, that's exactly why social studies is the greatest subject in school, because it provokes you into disagreeing with your teacher, and that's where you really learn something for life (and about Civil Rights).
+1
Offline
Hold on, when was that post from?
EDIT: Umm…
Last edited by Hardmath123 (2013-04-23 22:59:02)
Offline
Except for, you know, gun laws are OK right?
(Hi guys, I'm back. Actually, I've been back for a while, but I got grounded for a week. After I was so overwhelmed by the number of posts here that I decided to take a little break from the BYOB 3 thread.)
Offline
Should kurt allow float position values for sprites, watchers, etc?
Offline