Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #248118

Re: which program can show X/Y position of mouse pointer

Path csiph.com!1.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Michael Lange <klappnase@freenet.de>
Newsgroups linux.debian.user
Subject Re: which program can show X/Y position of mouse pointer
Date Thu, 12 May 2022 11:00:02 +0200
Message-ID <EmcPU-eWnZ-5@gated-at.bofh.it> (permalink)
References <El9hn-ej4N-1@gated-at.bofh.it> <El9Kp-ejts-7@gated-at.bofh.it> <ElQPn-eJqg-3@gated-at.bofh.it> <Em6U9-eSRD-5@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Thu May 12 08:55:01 2022
Old-Return-Path <prvs=01315a9e35=klappnase@freenet.de>
X-Amavis-Spam-Status No, score=-11.156 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, NICE_REPLY_A=-3.247, RCVD_IN_DNSWL_LOW=-0.7, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -5.5
X-Greylist delayed 325 seconds by postgrey-1.36 at bendel; Thu, 12 May 2022 08:54:50 UTC
X-Mailer Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Fn-Muuid 87D23501ED62611CD072D191D78776AA04159AD8D5090B16BB74C26EF8111874
X-Originated-At 188.174.46.96!35998
X-Scan-Ts Thu, 12 May 2022 10:49:21 +0200
X-Mailing-List <debian-user@lists.debian.org> archive/latest/789025
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/20220512104920.0abd25a312782d2b86384ae0@freenet.de
Approved robomod@news.nic.it
Lines 57
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 12 May 2022 10:49:20 +0200
X-Original-Message-ID <20220512104920.0abd25a312782d2b86384ae0@freenet.de>
X-Original-References <7005b652-6efd-be43-5adc-6f0ddfff7265@sina.com> <20220509110957.7smbzkgmtav3pnmx@randomstring.org> <20220511112753.d30e64299cfab325a71e5eb7@freenet.de> <925d2fe5-f893-918f-b373-85ebf10c05c6@sina.com>
Xref csiph.com linux.debian.user:248118

Show key headers only | View raw


Hi,

On Wed, 11 May 2022 22:34:00 -0400
lou <loushanguan2015@sina.com> wrote:

> 
> Thank Michael Lange!
> 
> it's what i need, and it works fine in twm

I am glad if I could help.

Btw, I noticed there is a small bug in the script, there should be an
additional line towards the script's end, so that the end of the script
looks like:

root.bind('<1>', quit)
for sig in (2, 3, 6, 15):
    signal(sig, quit)
root.wm_protocol('WM_DELETE_WINDOW', quit) # I forgot this the other day
root.update_idletasks()
start()
root.deiconify()
root.mainloop()
root.destroy()


There shouldn't happen anything nasty without this "WM-protocol" handler,
however when the window is removed by the window manager, without this
line some ugly "crash message" might show up.

> 
> no wonder python is so popular these days

I guess this could be done with even fewer lines of code when written in
Tcl/Tk, I am just more familiar with Python ;)

> 
> PS: why isn't there some existing application that can do this job? is 
> my need too special?
> 

Actually there is at least one:

https://sourceforge.net/projects/mouseposition/

It works here, looks like it just didn't make it into debian.

Have a nice day,

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

No one wants war.
		-- Kirk, "Errand of Mercy", stardate 3201.7

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

which program can show X/Y position of mouse pointer lou <loushanguan2015@sina.com> - 2022-05-09 13:00 +0200
  Re: which program can show X/Y position of mouse pointer Dan Ritter <dsr@randomstring.org> - 2022-05-09 13:30 +0200
    Re: which program can show X/Y position of mouse pointer lou <loushanguan2015@sina.com> - 2022-05-09 14:00 +0200
      Re: which program can show X/Y position of mouse pointer Dan Ritter <dsr@randomstring.org> - 2022-05-09 15:40 +0200
        Re: which program can show X/Y position of mouse pointer lou <loushanguan2015@sina.com> - 2022-05-10 01:30 +0200
          Re: which program can show X/Y position of mouse pointer David Wright <deblis@lionunicorn.co.uk> - 2022-05-10 03:50 +0200
    Re: which program can show X/Y position of mouse pointer Michael Lange <klappnase@freenet.de> - 2022-05-11 11:30 +0200
      Re: which program can show X/Y position of mouse pointer lou <loushanguan2015@sina.com> - 2022-05-12 04:40 +0200
        Re: which program can show X/Y position of mouse pointer Michael Lange <klappnase@freenet.de> - 2022-05-12 11:00 +0200
  Re: which program can show X/Y position of mouse pointer John Hasler <john@sugarbit.com> - 2022-05-10 02:50 +0200

csiph-web