LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Clone of TKPAINT for LINUX? (https://www.linuxquestions.org/questions/linux-software-2/clone-of-tkpaint-for-linux-4175527428/)

Xeratul 12-05-2014 07:15 AM

Clone of TKPAINT for LINUX?
 
1 Attachment(s)
Hello,

I was looking for a lightweight replacement of INKSCAPE.

It seems that there is only xpaint but it is not Vector graphics. XFIG is very very old, and not that good compared to the great xpaint features.

I have found TKPAINT that can be started over WINE. wine tkpaint.exe

tkpaint.exe is really beautiful. Nice icons, and it is very lightweight. The fonts are also awesome. Much nicer than free linux fonts.

Would you know a nice port of tkpaint for linux, especially for debian stable/testing? (into the repos for instance)

Thank you

knudfl 12-05-2014 07:49 AM

There is a package `tkpaint´ for Ubuntu 10.04
http://packages.ubuntu.com/lucid/tkpaint
> tkpaint_1.5.4-7_all.deb

Installs and works OK in e.g. Debian Wheezy :
# gdebi tkpaint_1.5.4-7_all.deb

-

Xeratul 12-05-2014 07:55 AM

Quote:

Originally Posted by knudfl (Post 5279979)
There is a package `tkpaint´ for Ubuntu 10.04
http://packages.ubuntu.com/lucid/tkpaint
> tkpaint_1.5.4-7_all.deb

Installs and works OK in e.g. Debian Wheezy :
# gdebi tkpaint_1.5.4-7_all.deb

-

I have no /usr/bin/wish and I cannot find it into debian package html page.
tkpaint: /usr/bin/wish: bad interpreter: No such file or directory


tgif is awful !
Code:

$ tgif
Fatal Error in OpenFont(): Cannot open the Default(Msg)Font '-*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1'.
Tgif aborted.



what about?
http://sourceforge.net/projects/ipe7/files/ipe/7.1/
ipe is actually better since it can import PNG, and EVEN resize them !!!

knudfl 12-05-2014 08:27 AM

← #3 .

When you do # gdebi tkpaint_1.5.4-7_all.deb
... the package `tk8.4´ will be installed : /usr/bin/wish8.4

? 'tkpaint' may work with any version of wish ?

Please install the default tk : `tk8.5´.
.. The '/etc/alternatives/' mechanism will create : wish -> wish8.5 .

* If you want to switch to the "8.4 wish" :
# update-alternatives --config wish
... and select /usr/bin/wish8.4

-

Xeratul 12-05-2014 08:34 AM

Quote:

Originally Posted by knudfl (Post 5280000)
← #3 .

When you do # gdebi tkpaint_1.5.4-7_all.deb
... the package `tk8.4´ will be installed : /usr/bin/wish8.4

? 'tkpaint' may work with any version of wish ?

Please install the default tk : `tk8.5´.
.. The '/etc/alternatives/' mechanism will create : wish -> wish8.5 .

* If you want to switch to the "8.4 wish" :
# update-alternatives --config wish
... and select /usr/bin/wish8.4

-

thank you

I give up. there is no single good lightweight vector graphics on linux.

Only xpaint is good and light. the rest, xfig is really uncomfortable to use. there is no single nice zooming and so on.

I guess the best is to use pdfimages and try to fight to get sthg out of the jpg with some ttricks.

knudfl 12-05-2014 08:36 AM

Quote:

I give up.
Why ?

Should be an easy thing to do # apt-get install tk8.5

Xeratul 12-05-2014 08:39 AM

Quote:

Originally Posted by knudfl (Post 5280005)
Why ?

Should be an easy thing to do # apt-get install tk8.5


done.
Code:

pdate-alternatives: using /usr/bin/wish8.5 to provide /usr/bin/wish (wish) in auto mode
ldconfig: /usr/lib/libgraph.so.1 is not a symbolic link

Processing triggers for menu ...

then I get for tgif:
Code:

$ tgif
Fatal Error in OpenFont(): Cannot open the Default(Msg)Font '-*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1'.
Tgif aborted.

and
wget http://archive.ubuntu.com/ubuntu/poo....4.orig.tar.gz

Code:

./configure
make
./tkpaint

returns:
Code:

./tkpaint
Error in startup script: couldn't open "/usr/lib/tkpaint/gifs/rectangle.gif": no such file or directory
    while executing
"image create photo -file [file join $LIBDIR gifs $gif]"
    ("foreach" body line 3)
    invoked from within
"foreach {btype var row col gif command} $Buttons {
    regexp {([^.]+)\.} $gif dummy b
    set im [image create photo -file [file join $LIBDIR gifs $g..."
    (file "./tkpaint" line 661)

tkpaint is not coded in C and nor using X11 libs only.
I saw that tkpaint cannot resize a png or a picture.
It cannot even edit nice the vectors,...

well, there is no single program lightweight on linux for vector graphics.
xfig is really uncomfortable to use.

Xeratul 12-05-2014 09:13 AM

OK. Tkpaint can
- import ppm and bmp
- can re/zoom the picture to make it smaller
- it has a function to use fonts and move them

ok, it isnt that bad.

ok, I got the src, make it and run it with ./tkpaint

I vim the tkpaint, and could change the key shortcuts.


Code:

5292 ########## ACCELERATORS:
5293 #bind all <Control-Key-u> {.mbar.shape.menu invoke Ellipse}
5294 #{.mbar.edit.menu invoke "Undo last change"}
5295 bind all <Key-o> {.mbar.shape.menu invoke Ellipse}
5296 bind all <Key-l> {.mbar.shape.menu invoke Line}
5297 bind all <Key-p> {.mbar.shape.menu invoke Spline}
5298 bind all <Key-a> {select1object}
5299 bind all <Key-e> {select1object}
5300 bind all <Key-m> {.mbar.edit.menu invoke "Move object"}
5301 bind all <Key-v> {.mbar.edit.menu invoke "Move object"}
5302 bind all <Key-r> {.mbar.shape.menu invoke Rectangle}
5303 bind all <Key-u> {
5304    if {$Zoom(factor)<5} {
5305          set z [expr $Zoom(factor)+0.5]
5306    } else {
5307          set z 0.5
5308    }
5309    Zoom $z
5310 }
5311 bind all <Key-d> {
5312    if {$Zoom(factor)<5} {
5313          set z [expr $Zoom(factor)-0.5]
5314    } else {
5315          set z 0.5
5316    }
5317    Zoom $z
5318 }
5319 
5320






Anyone having the key shorcuts like illustrator?

thank you


All times are GMT -5. The time now is 01:44 AM.