wyolum / EPD

Electronic Paper Display libraries and examples
44 stars 44 forks source link

wifit.py ~~~ No text! #2

Open wyojustin opened 11 years ago

wyojustin commented 11 years ago

Please add the ability to add text to wifit.py so people can edit there own badges.

a

wyojustin commented 11 years ago

Cool! Making good progress. image

brent8149 commented 11 years ago

I'm getting the following error when I try and run it now:

Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1470, in call return self.func(*args) File "wifit.py", line 144, in key_event out = child.key_event(event) File "wifit.py", line 585, in key_event self.insert(char, self.cursor) File "wifit.py", line 551, in insert self.layout_text() File "wifit.py", line 540, in layout_text unifont.addText(self.text, self.image1, 0, 0, self.bigascii) File "C:\Users\Brent\Documents\GitHub\EPD\libraries\EReader\examples\ALbum\unifont.py", line 201, in addText addText(utxt, im, x, y, bigascii=False, wff_file=wff_file) File "C:\Users\Brent\Documents\GitHub\EPD\libraries\EReader\examples\ALbum\unifont.py", line 204, in addText x += paste_char(wff_file, im, ord(unic), x, y) File "C:\Users\Brent\Documents\GitHub\EPD\libraries\EReader\examples\ALbum\unifont.py", line 156, in paste_char img.paste(im, (x, y)) File "C:\Python27\lib\site-packages\PIL\Image.py", line 1103, in paste self.im.paste(im, box) TypeError: an integer is required

Wondering if I might have a different version of PIL on this machine? It was working earlier..

brent8149 commented 11 years ago

Specifically, thats caused when I press 'i' to activate the text box, and then try to type. I am also unable to select the box. to move it around.

wyojustin commented 11 years ago

Hmmmm. Can you print out im, x, and y?

On Wed, Aug 7, 2013 at 12:32 AM, brent8149 notifications@github.com wrote:

I'm getting the following error when I try and run it now:

Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1470, in call return self.func(*args) File "wifit.py", line 144, in key_event out = child.key_event(event) File "wifit.py", line 585, in key_event self.insert(char, self.cursor) File "wifit.py", line 551, in insert self.layout_text() File "wifit.py", line 540, in layout_text unifont.addText(self.text, self.image1, 0, 0, self.bigascii) File "C:\Users\Brent\Documents\GitHub\EPD\libraries\EReader\examples\ALbum\unifont.py", line 201, in addText addText(utxt, im, x, y, bigascii=False, wff_file=wff_file) File "C:\Users\Brent\Documents\GitHub\EPD\libraries\EReader\examples\ALbum\unifont.py", line 204, in addText x += paste_char(wff_file, im, ord(unic), x, y) File "C:\Users\Brent\Documents\GitHub\EPD\libraries\EReader\examples\ALbum\unifont.py", line 156, in paste_char img.paste(im, (x, y)) File "C:\Python27\lib\site-packages\PIL\Image.py", line 1103, in paste self.im.paste(im, box) TypeError: an integer is required

Wondering if I might have a different version of PIL on this machine? It was working earlier..

— Reply to this email directly or view it on GitHubhttps://github.com/wyolum/EPD/issues/2#issuecomment-22229174 .

Justin justin@wyolum.com

wyojustin commented 11 years ago

Let me try on windows.

On Wed, Aug 7, 2013 at 12:33 AM, brent8149 notifications@github.com wrote:

Specifically, thats caused when I press 'i' to activate the text box, and then try to type. I am also unable to select the box. to move it around.

— Reply to this email directly or view it on GitHubhttps://github.com/wyolum/EPD/issues/2#issuecomment-22229189 .

Justin justin@wyolum.com

wyojustin commented 11 years ago

[image: Inline image 1]

On Wed, Aug 7, 2013 at 12:35 AM, Justin Shaw wyojustin@gmail.com wrote:

Let me try on windows.

On Wed, Aug 7, 2013 at 12:33 AM, brent8149 notifications@github.comwrote:

Specifically, thats caused when I press 'i' to activate the text box, and then try to type. I am also unable to select the box. to move it around.

— Reply to this email directly or view it on GitHubhttps://github.com/wyolum/EPD/issues/2#issuecomment-22229189 .

Justin justin@wyolum.com

Justin justin@wyolum.com

brent8149 commented 11 years ago

Image.Image image mode=1 size=24x16 at 0x2C65238> 0 0

wyojustin commented 11 years ago

I just updated... try a git pull

On Wed, Aug 7, 2013 at 12:44 AM, brent8149 notifications@github.com wrote:

Image.Image image mode=1 size=24x16 at 0x2C65238> 0 0

— Reply to this email directly or view it on GitHubhttps://github.com/wyolum/EPD/issues/2#issuecomment-22229439 .

Justin justin@wyolum.com

brent8149 commented 11 years ago

Well, its reporting an error, but the image size is growing. after typing some (invisible) characters, and getting errors, the size is 360x16 edit: Even after updating

wyojustin commented 11 years ago

Can you delete the splash image when it comes up? Click and then delete key.

J

On Wed, Aug 7, 2013 at 12:49 AM, brent8149 notifications@github.com wrote:

Well, its reporting an error, but the image size is growing. after typing some (invisible) characters, and getting errors, the size is 360x16

— Reply to this email directly or view it on GitHubhttps://github.com/wyolum/EPD/issues/2#issuecomment-22229585 .

Justin justin@wyolum.com

brent8149 commented 11 years ago

Yes, deleting works.

On Wed, Aug 7, 2013 at 12:52 AM, Justin Shaw notifications@github.comwrote:

Can you delete the splash image when it comes up? Click and then delete key.

J

On Wed, Aug 7, 2013 at 12:49 AM, brent8149 notifications@github.com wrote:

Well, its reporting an error, but the image size is growing. after typing some (invisible) characters, and getting errors, the size is 360x16

— Reply to this email directly or view it on GitHub< https://github.com/wyolum/EPD/issues/2#issuecomment-22229585> .

Justin justin@wyolum.com

— Reply to this email directly or view it on GitHubhttps://github.com/wyolum/EPD/issues/2#issuecomment-22229669 .

wyojustin commented 11 years ago

But no improvement with the text?

brent8149 commented 11 years ago

Nope, I'll have to show it to you tomorrow (assuming its not just this machine)

On Wed, Aug 7, 2013 at 12:56 AM, Justin Shaw notifications@github.comwrote:

But no improvement with the text?

— Reply to this email directly or view it on GitHubhttps://github.com/wyolum/EPD/issues/2#issuecomment-22229749 .

wyojustin commented 11 years ago

I see the same thing when I run from py2exe generated executable.

brent8149 commented 11 years ago

Tomorrow I should have some time to try and fix it. I just got back to NJ last night. I also still have the Regular expressions book, and the Ipython book. Let me know when you would like them back, I can mail them.

wyojustin commented 11 years ago

If you will read the regexp book cover to cover, please take it. The other was a gift too. I can look up what I need on line, but it is nice to read a real book when you want to read the whole thing.

How did it go last week?

Justin

On Sun, Aug 11, 2013 at 11:47 PM, brent8149 notifications@github.comwrote:

Tomorrow I should have some time to try and fix it. I just got back to NJ last night. I also still have the Regular expressions book, and the Ipython book. Let me know when you would like them back, I can mail them.

— Reply to this email directly or view it on GitHubhttps://github.com/wyolum/EPD/issues/2#issuecomment-22472158 .

Justin justin@wyolum.com

brent8149 commented 11 years ago

Presentation went great! I think they were impressed, and I just tried to stress how much I was able to learn this summer. I also talked to them about the idea of interns working together in teams. They seemed to like the idea, so maybe next year they will push for team type projects. Then Mary took all the interns out for lunch, and we had a good time overall. Columbia office is nice.

If all goes well, I should be able to resume working in Columbia in 2 weeks.

Thanks again for the books! -Brent