| nzk | How do I make it such that the printed output is in quotes like print "asdf is "qwerty""? so it shows up as asdf is "qwerty" |
| theCore | '"' output + '"' '"' + output + '"' |
| glen_quagmire | ivan`: i see. another reason not to use from x import y. what if I have 2 modules path1/module and path2/module ? and both path1 and path2 is in sys.path ?? do I have to make unique module names? |
| Tenjou_Utena | import Blah as BLash2 |
| ivan` | why sys.path modifications instead of __init__.py in the directories? then you can import with path2.module |
| nzk | theCore, I did what you said and it errors at the thing http://slexy.org/paste/1720 |
| glen_quagmire | oh didn't know that!! awesome! |
| Tenjou_Utena | THis line: print "The encoded output is " '"' + %s + '"' % encoded |
| steveire | Hey. Is it possible to have a scrolling canvas in Tkinter? I want to put about 20 Entry widgets in a space, and be able to scroll through them. |
| Tenjou_Utena | Can be: print "The encoded output is " '"' + encoded + '"' Can be: print "The encoded output is " + '"' + encoded + '"' |
| theCore | nzk: oh, %s needs to be inside a string nzk: so, "The encoded output is \"%s\"" % encoded or, 'The encoded output is "%s"' % encoded |
| Tenjou_Utena | Or just... 'THe encoded output is "%s"' % encoded Ya |
| theCore | yay! |
| nzk | What the hell is up with the freenode servers? Tenjou_Utena, you never cease to be clever, it works fine and with only 4 extra bytes |
| theCore | nzk: or with even less character: print 'The encoded output is "' + encoded + '"' :) |
| nzk | Myabe if I was going for ultra optimization Doing a large 3d project taught me alot about workflow |
| theCore | again, use the one which is the most readable |
| nzk | 40% rendering 59% thinking and fixing stuff 1% making new stuff |
| glen_quagmire | what's the purpose of __init__.py?? i have ./test/module.py and ./test/__init__.py is absent. but still i can do import test.module |
| theCore | nzk: eh, I always thought that debugging was 80% of the work |
| nzk | I meant general workflow In my case a 3d animation |
| steveire | Can I put tkinter widgets inside a Canvas widget? |