473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Drawing on the root window in Linux?

Hey all:

Is there any way to draw on the 'root' window? I'm thinking about a
python screensaver for linux. I know that there are xlib bindings for
python, maybe a little outdated, but do they have what I might need?

Sorry if this has been asked before, but I couldn't find any answers,
and Google was coming up empty.

-Charlie

Jul 18 '05 #1
4 4343
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charlie Lesh wrote:
| Hey all:
|
| Is there any way to draw on the 'root' window? I'm thinking about a
| python screensaver for linux. I know that there are xlib bindings for
| python, maybe a little outdated, but do they have what I might need?

Try xlib-python (or python-xlib).
And welcome to a whole new world of pain.

|
| Sorry if this has been asked before, but I couldn't find any answers,
| and Google was coming up empty.
|
| -Charlie
|

- --

Kind regards
David

- --

leave this line intact so your email gets through my junk mail filter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/1/WxUuEuev/PjrcRAiznAJ9dk9T3A992rJ90rr9WwWMkAWQY8wCgwujA
Klx2JpzsDb0ItSL33/wjy+s=
=00GA
-----END PGP SIGNATURE-----
Jul 18 '05 #2
> Is there any way to draw on the 'root' window? I'm thinking about a
python screensaver for linux. I know that there are xlib bindings for
python, maybe a little outdated, but do they have what I might need?

Sorry if this has been asked before, but I couldn't find any answers,
and Google was coming up empty.


Did you check superkaramba? That does python-enriched interactive backround
content. So they gotta somehow manipulate root :)

Regards,

Diez
Jul 18 '05 #3
Diez B. Roggisch wrote:
Sorry if this has been asked before, but I couldn't find any answers,
and Google was coming up empty.


Did you check superkaramba? That does python-enriched interactive backround
content. So they gotta somehow manipulate root :)


they're using shaped windows, don't they? see

http://netdragon.sourceforge.net/?pa...+a+Widget+Mask

</F>


Jul 18 '05 #4
On Thu, 11 Dec 2003 17:42:25 +1300, David McNab wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charlie Lesh wrote:
| Hey all:
|
| Is there any way to draw on the 'root' window? I'm thinking about a
| python screensaver for linux. I know that there are xlib bindings for
| python, maybe a little outdated, but do they have what I might need?

Try xlib-python (or python-xlib).
And welcome to a whole new world of pain.


Yeah, but it's cool and it does everything, i think.
Let me know if you head down this path.

Simon.

Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Leif K-Brooks | last post by:
I'm considering writing a fairly basic vector drawing program using PyGTK. What's the best way to render it? What I'm thinking of is having everything render on a PIL image, then display that in...
5
by: Jonathan | last post by:
I am creating a CD-ROM based website template. Things work fine under Windows but when I try to run the site under Linux the path is messed up. Therefore my JavaScript functions misinterpret the...
2
by: James Coburn's Grey Helmet Hair | last post by:
When I try to compile my GTK# app, the compiler says: jbailo@linux:~/mono> mcs buttons.cs -r gtk-sharp.dll -r glib-sharp.dll -r -o buttons.exe error CS2001: Source file 'buttons.exe' could not...
0
by: borhan | last post by:
I am designing a program in which the user will be drawing, lines, circules and so on, on a paint control which displays an image opened by the user. "It's like there is a map on the picturebox...
4
by: Peter Oliphant | last post by:
There doesn't seem to be any documentation on how to create and/or use an instance of System::Drawing::Graphics. On-line MSDN talks about this class, and says: " The Graphics class provides...
3
by: Chris Saunders | last post by:
I am fairly new to .Net and C# but am familiar with the Win32 API. I wish to set the pixels of the client area of a window one at a time with a specific color. I have so far discovered that...
7
by: rajbala.3399 | last post by:
Hi , I want to download sql in my linux system........... # rpm -ivh MySQL-server-5.0.24a-0.glibc23.i386.rpm MySQL-cl ient-5.0.24a-0.glibc23.i386.rpm Preparing... ...
1
by: Andrew | last post by:
Hello Everyone I am receiving an error in an application I am working on. The application when its done will be a Dungeons and Dragons Network game. I am having problems with the Networked...
2
by: ouzsharp | last post by:
The follwing class works well when used in a C# console application: namespace ScreenShotDemo { /// <summary> /// Provides functions to capture the entire screen, or a particular...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.