![]() |
#1 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4
Karma: 2602
Join Date: Jul 2012
Device: kidnle touch
|
![]()
I copied the embedded tcl 'etcl' http://www.evolane.com/software/etcl/ to the kindle and played with the tcl part. tcl works just great. when I try to run the Tk part it seems to work but nothing is shown. I used the "Gui Launcher" but on launch no gui is seen. also in xtrem I do not see a thing but no error.
any hints on how to approach this? I am not an expert so I probably miss something fundamental. |
![]() |
![]() |
![]() |
#2 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
For the GUI to work on the kindle, it needs eink support. Even if it has framebuffer support, you need to trigger eink updates. That can be added to the code, or it can run as a background script the way Jesse Vincent did it for Savory (Qt/Calibre ported to run on the kindle).
Depending on WHICH kindle, it needs some input handling too (DX and K3 use different keycodes for their keyboards, K4 needs a 5-way joypad controlled onscreen keyboard, K5 needs a touchscreen onscreen keyboard and touchscreen mouse emulation). None of these are trivial. |
![]() |
![]() |
![]() |
#3 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Googling suggests that there are eTcl versions with X11 support.
If yours has then you still have to set the correct window title for anything to be shown. The KT environment uses the X11 window title for deciding how to stack and display the X11 windows. See this thread https://www.mobileread.com/forums/sho...d.php?t=162022. For a quick test of a X11 program you don't need to do anything else as the touch event on the KT is mapped to a standard X11 left mouse click event. |
![]() |
![]() |
![]() |
#4 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4
Karma: 2602
Join Date: Jul 2012
Device: kidnle touch
|
![]()
I played some more and found that the only thing that was missing in the tcl code was the line:
wm overrideredirect $wname on (where wname is the window name) I was able to run the etcl demos of the calculator and the ataxx game after adding this line. I also created a launcher and then run nicely. This means that existing Tk application with slight modification can run nicely on the kindle. of course the Etcl demos with the additional line need no further modification. |
![]() |
![]() |
![]() |
#6 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Now we need a new Tk prefix, and a new Tk index, for these new Tk apps. ![]() P.S. Welcome to the 2600 club! ![]() |
|
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
Where did you add that line?
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4
Karma: 2602
Join Date: Jul 2012
Device: kidnle touch
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
$0.01 in Kindle Store: Interactive Sudoku for Kindle 2 and Kindle DX - Volume 1 | Xia | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 11-07-2009 10:06 AM |