Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifit.py ~~~ No text! #2

Open
wyojustin opened this issue Aug 4, 2013 · 17 comments
Open

wifit.py ~~~ No text! #2

wyojustin opened this issue Aug 4, 2013 · 17 comments
Assignees

Comments

@wyojustin
Copy link
Member

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

a

@ghost ghost assigned brent8149 Aug 4, 2013
@wyojustin
Copy link
Member Author

Cool! Making good progress.
image

@brent8149
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Member Author

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

On Wed, Aug 7, 2013 at 12:32 AM, brent8149 [email protected] 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//issues/2#issuecomment-22229174
.

Justin
[email protected]

@wyojustin
Copy link
Member Author

Let me try on windows.

On Wed, Aug 7, 2013 at 12:33 AM, brent8149 [email protected] 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//issues/2#issuecomment-22229189
.

Justin
[email protected]

@wyojustin
Copy link
Member Author

[image: Inline image 1]

On Wed, Aug 7, 2013 at 12:35 AM, Justin Shaw [email protected] wrote:

Let me try on windows.

On Wed, Aug 7, 2013 at 12:33 AM, brent8149 [email protected]:

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//issues/2#issuecomment-22229189
.

Justin
[email protected]

Justin
[email protected]

@brent8149
Copy link
Contributor

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

@wyojustin
Copy link
Member Author

I just updated... try a git pull

On Wed, Aug 7, 2013 at 12:44 AM, brent8149 [email protected] wrote:

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


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

Justin
[email protected]

@brent8149
Copy link
Contributor

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
Copy link
Member Author

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 [email protected] 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//issues/2#issuecomment-22229585
.

Justin
[email protected]

@brent8149
Copy link
Contributor

Yes, deleting works.

On Wed, Aug 7, 2013 at 12:52 AM, Justin Shaw [email protected]:

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 [email protected]
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
[email protected]


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

@wyojustin
Copy link
Member Author

But no improvement with the text?

@brent8149
Copy link
Contributor

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 [email protected]:

But no improvement with the text?


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

@wyojustin
Copy link
Member Author

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

@brent8149
Copy link
Contributor

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
Copy link
Member Author

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 [email protected]:

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//issues/2#issuecomment-22472158
.

Justin
[email protected]

@brent8149
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants