For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > December 2005 > Tk and xdefaults on windows (prompted by Re: Tk's lack of "chrome")









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Tk and xdefaults on windows (prompted by Re: Tk's lack of "chrome")
Hans Jeuken

2005-12-09, 7:15 pm

On Friday 09 December 2005 13:58, Nick Ing-Simmons wrote:
> Hans Jeuken <haje@toneel.demon.nl> writes:
>
> I well thought out set of xresources can help X11
> for sure. Windows might be a little more tricky
> as core tk (as currently ported) aims to use "native look".
>


A couple of years ago i had a W98 machine and i was
sharing my linux home folder on that machines through
samba. When launching a perl/Tk script from that
shared drive on the W98 it used the settings in
the .Xdefaults file in my homedirectory on my linux
machine. I do not remember if all settings were correct,
but at least background colours matched.

My guess therefore is that an .Xdefaults in the root
of the drive from where you are launching the script
will be used on Windows, but i did not pursue this
then and now i don't have a Windows machine to
test.

I don't know if anybody has been investigating this,
but would be very interested to hear experiences.

Hans
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu

Ben Pavon

2005-12-09, 7:15 pm

This is a multi-part message in MIME format.
--------------060901000703020502040104
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Not sure about where/how the .Xdefaults file is read on Windows,
however I am sure that one can read application-specific X resource
files on Unix or Windows via the Tk::CmdLine module.
(I contributed that code a few years back.)
How to do it is in the documentation for Tk::CmdLine.

Adios,

Hans Jeuken wrote:

> On Friday 09 December 2005 13:58, Nick Ing-Simmons wrote:
>
>
> A couple of years ago i had a W98 machine and i was
> sharing my linux home folder on that machines through
> samba. When launching a perl/Tk script from that
> shared drive on the W98 it used the settings in
> the .Xdefaults file in my homedirectory on my linux
> machine. I do not remember if all settings were correct,
> but at least background colours matched.
>
> My guess therefore is that an .Xdefaults in the root
> of the drive from where you are launching the script
> will be used on Windows, but i did not pursue this
> then and now i don't have a Windows machine to
> test.
>
> I don't know if anybody has been investigating this,
> but would be very interested to hear experiences.
>
> Hans
> -++**==--++**==--++**==--++**==--++**==--++**==--++**==
> This message was posted through the Stanford campus mailing list
> server. If you wish to unsubscribe from this mailing list, send the
> message body of "unsubscribe ptk" to majordomo@lists.stanford.edu




--
__END__

------------------------------------------------------------------------
Ben Pavon 310.364.9827 ben.pavon@boeing.com
------------------------------------------------------------------------

Benny says "Do it right, do it once!"

--------------060901000703020502040104
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi,<br>
<br>
Not sure about where/how the .Xdefaults file is read on Windows,<br>
however I am sure that one can read application-specific X resource<br>
files on Unix or Windows via the Tk::CmdLine module.<br>
(I contributed that code a few years back.)<br>
How to do it is in the documentation for Tk::CmdLine.<br>
<br>
Adios,<br>
<br>
Hans Jeuken wrote:</tt>
<blockquote cite="mid200512091930.52401.haje@toneel.demon.nl"
type="cite"><tt>On Friday 09 December 2005 13:58, Nick Ing-Simmons
wrote:<br>
</tt>
<blockquote type="cite"><tt>Hans Jeuken <a class="moz-txt-link-rfc2396E" href="mailto:haje@toneel.demon.nl">&lt;haje@toneel.demon.nl&gt;</a>
writes:<br>
</tt>
<blockquote type="cite"><tt>It's not a very serious note what i
have to say,<br>
but in all the shiny glittery new gui's like qt and gtk(2)<br>
and wrappers like wx, somehow, i don;t find<br>
perl/Tk looking old fashioned looking, as i have seen<br>
other people saying in this discussion,<br>
if you take a little care of your xresources file.<br>
</tt></blockquote>
<tt>I well thought out set of xresources can help X11<br>
for sure. Windows might be a little more tricky<br>
as core tk (as currently ported) aims to use "native look".<br>
<br>
</tt></blockquote>
<!----><tt><br>
A couple of years ago i had a W98 machine and i was<br>
sharing my linux home folder on that machines through<br>
samba. When launching a perl/Tk script from that<br>
shared drive on the W98 it used the settings in <br>
the .Xdefaults file in my homedirectory on my linux <br>
machine. I do not remember if all settings were correct,<br>
but at least background colours matched.<br>
<br>
My guess therefore is that an .Xdefaults in the root<br>
of the drive from where you are launching the script<br>
will be used on Windows, but i did not pursue this<br>
then and now i don't have a Windows machine to<br>
test. <br>
<br>
I don't know if anybody has been investigating this,<br>
but would be very interested to hear experiences.<br>
<br>
Hans<br>
-++**==--++**==--++**==--++**==--++**==--++**==--++**==<br>
This message was posted through the Stanford campus mailing list<br>
server. If you wish to unsubscribe from this mailing list, send the<br>
message body of "unsubscribe ptk" to <a class="moz-txt-link-abbreviated" href="mailto:majordomo@lists.stanford.edu">majordomo@lists.stanford.edu</a><br>
</tt></blockquote>
<tt><br>
<br>
-- <br>
__END__<br>
<br>
------------------------------------------------------------------------<br>
Ben Pavon 310.364.9827 <a class="moz-txt-link-abbreviated" href="mailto:ben.pavon@boeing.com">ben.pavon@boeing.com</a><br>
------------------------------------------------------------------------<br>
<br>
Benny says "Do it right, do it once!"</tt><br>
</body>
</html>

--------------060901000703020502040104--
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com