Re: [Tkinter-discuss] Copy image to clipboard

2024-03-01 Thread Vasilis Vlachoudis
ote: > On Thu, 22 Feb 2024 10:22:06 + > Vasilis Vlachoudis wrote: > > > Dear all, > > > > I am trying in X11 to copy an image to clipboard but with out success. > (...) > > Hi Vasilis, > > sorry for the belated reply. > > This is tricky, I tr

[Tkinter-discuss] Copy image to clipboard

2024-02-22 Thread Vasilis Vlachoudis
Dear all, I am trying in X11 to copy an image to clipboard but with out success. here the code that I am using up to now # image is a PIL image image_buffer = io.BytesIO() image.save(image_buffer, format="PNG") image_buffer.seek(0) window.clipboard_clear()

Re: [Tkinter-discuss] Navigation in menu with multiple columns

2023-09-25 Thread Vasilis Vlachoudis
Great! Many thanks Michael! From: Michael Lange Sent: Saturday 23 September 2023 19:08 To: Vasilis Vlachoudis Cc: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Navigation in menu with multiple columns Hi, On Tue, 19 Sep 2023 09:34:34 + Vasilis

Re: [Tkinter-discuss] Navigation in menu with multiple columns

2023-09-19 Thread Vasilis Vlachoudis
to show menu").pack()   tk.Label(root, text=" to exit").pack()   root.bind("<1>", lambda e: show_menu(e))   root.bind("<3>", lambda e: show_menu(e))   root.bind("", lambda e: show_menu(e))   root.bind("", lambda e: root.d

Re: [Tkinter-discuss] Navigation in menu with multiple columns

2023-09-18 Thread Vasilis Vlachoudis
Great, many thanks Michael! From: Michael Lange Sent: Sunday 17 September 2023 02:14 To: Vasilis Vlachoudis Cc: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Navigation in menu with multiple columns Hi Vasilis, On Fri, 15 Sep 2023 09:55:49 +

Re: [Tkinter-discuss] Navigation in menu with multiple columns

2023-09-15 Thread Vasilis Vlachoudis
)   root.mainloop() ________ From: Tkinter-discuss on behalf of Michael Lange Sent: Thursday 14 September 2023 09:45 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Navigation in menu with multiple columns Hi Vasilis, On Wed, 13 Sep

[Tkinter-discuss] Navigation in menu with multiple columns

2023-09-13 Thread Vasilis Vlachoudis
In my application I am dynamically creating cascading menus, where some of them have multiple entries. To imrpove the visualization I break them into multiple columns using the "columnbreak=1" attribute in the Menu.add_command() The Up/Down keys move correctly the active/highlighted entry

[Tkinter-discuss] Treeview: stop temporarily TreeviewSelect messages

2023-05-31 Thread Vasilis Vlachoudis
Hi all, during the filling of a ttk.Treeview, widget I want to temporarily disable the <> (to restore the previously selected items), and re-enable it at the end. However, when I unbind the <> event the messages are still send. See the following demo code. I would expect that during the

Re: [Tkinter-discuss] Slow tk applications...

2022-11-20 Thread Vasilis Vlachoudis
The github issue seems to be stalled. Someone claims that it is a Tkinter issue and not an ibus one. V. From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Vasilis Vlachoudis [vasilis.vlachou...@cern.ch

Re: [Tkinter-discuss] Slow tk applications...

2022-11-20 Thread Vasilis Vlachoudis
2022 19:22, Vasilis Vlachoudis wrote: > Hi all, > > in the past months I've noticed a considerable slow-down on drawing of > the TK applications on the latest Ubuntu. > The slow-down is very noticeable during the initial phase of creating > the windows and when the application exits.

[Tkinter-discuss] Slow tk applications...

2022-11-19 Thread Vasilis Vlachoudis
Hi all, in the past months I've noticed a considerable slow-down on drawing of the TK applications on the latest Ubuntu. The slow-down is very noticeable during the initial phase of creating the windows and when the application exits. It takes a couple of seconds to create one by one all

Re: [Tkinter-discuss] 4k HiDPI displays and tkinter [cont]

2022-03-23 Thread Vasilis Vlachoudis
I forgot to reply to you, >>> f=font.Font(name='TkDefaultFont', exists=1) >>> rowheight=f.metrics('linespace')+2 >>> rowheight works beautifully. Many thanks!! ___ Tkinter-discuss mailing list Tkinter-discuss@python.org

Re: [Tkinter-discuss] 4k HiDPI displays and tkinter [cont]

2022-03-17 Thread Vasilis Vlachoudis
Tkinter-discuss] 4k HiDPI displays and tkinter [cont] Hi, On Wed, 16 Mar 2022 16:16:36 + Vasilis Vlachoudis wrote: > On the same topic of HiDPI screens, the Treeview seems to calculate > wrongly the font height (see attach image) > Do you know any way to correct that? > are

Re: [Tkinter-discuss] How to center tkDialog

2022-02-22 Thread Vasilis Vlachoudis
ced on top of the root window From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Vasilis Vlachoudis [vasilis.vlachou...@cern.ch] Sent: Tuesday, February 22, 2022 09:42 To: tkinter-discuss@python.org Subject: [Tkinter-discuss]

[Tkinter-discuss] How to center tkDialog

2022-02-22 Thread Vasilis Vlachoudis
Hi all, when using the tkDialogs.Dialog(), it always appears centered in the screen and not as on-top/transient of the master window. In contrast with the other dialogs it doesn't seem to respect the parent= any ideas on how to center it? Vasilis ___

Re: [Tkinter-discuss] 4k HiDPI displays and tkinter

2021-07-14 Thread Vasilis Vlachoudis
remain tiny. Where I can find the style options that I can change? I've tried style.configure("TScrollbar.uparrow", width="10m") but doesn't work Vasilis From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@pyth

Re: [Tkinter-discuss] 4k HiDPI displays and tkinter

2021-07-14 Thread Vasilis Vlachoudis
` method to compute pixel distances for em-s: https://github.com/thonny/thonny/blob/3f2607ff0b27ffedac9b24a107ea9fff5f6b1f1f/thonny/ui_utils.py#L2271 Best regards, Aivar On Mon, Jul 12, 2021 at 8:13 PM Vasilis Vlachoudis mailto:vasilis.vlachou...@cern.ch>> wrote: Recently I've got a 4k

[Tkinter-discuss] 4k HiDPI displays and tkinter

2021-07-12 Thread Vasilis Vlachoudis
Recently I've got a 4k laptop, and the first experience with linux and the 4k display is quite painful. I am still trying to tune it but for the moment my tkinter applications do not render nicely on such a display. - all widths like borderwidths, decorations, separators etc, set in pixels do

Re: [Tkinter-discuss] Exception protection to tk calls

2021-04-01 Thread Vasilis Vlachoudis
___ From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Wednesday, March 31, 2021 10:10 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Exception protection to tk calls Hi, On Wed, 31 Mar 202

[Tkinter-discuss] Exception protection to tk calls

2021-03-31 Thread Vasilis Vlachoudis
Is there any recommendation which tkinter calls have to be protected with an exception handling I occasionally receive traceback errors from my users on various calls like: grab_current, grab_release, focus_get most of the times I protect them with with a TclError handler catching exceptions

Re: [Tkinter-discuss] Extend selection in ttk.Treeview

2021-01-06 Thread Vasilis Vlachoudis
t;) if self.focus() != self._anchor: self.tk.call("ttk::treeview::SelectOp", self._w, self._anchor, "extend") return "break" From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on

[Tkinter-discuss] Extend selection in ttk.Treeview

2021-01-05 Thread Vasilis Vlachoudis
Hi all, I am currently replacing some Listbox() with ttk.Treeview() however the Treeview doesn't have the "Shift-Up/Down" and "B1-Motion" capabilities to select with the keyboard multiple items and with the mouse by click and drag. Looking the treeview.tcl I've managed to add a binding for the

Re: [Tkinter-discuss] Unicode range

2021-01-04 Thread Vasilis Vlachoudis
og.messages)) which is faster Vasilis From: Nam Nguyen [namngu...@google.com] Sent: Monday, January 04, 2021 18:39 To: Vasilis Vlachoudis Cc: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Unicode range Hi Vasilis, Perhaps by removing characters that are o

[Tkinter-discuss] Unicode range

2021-01-04 Thread Vasilis Vlachoudis
Hi all, how can I "replace/strip" unicode characters that are out of the accepted tk range before inserting them to Text()? File "/usr/lib/python3.6/tkinter/__init__.py", line 3272, in insert self.tk.call((self._w, 'insert', index, chars) + args) _tkinter.TclError: character U+1c784 is

[Tkinter-discuss] Treeview B1-Motion selection

2020-05-25 Thread Vasilis Vlachoudis
Hi all, For a ttk.Treeview() I've wanted to bind the B1-Motion to be able to select multiple items by clicking and dragging the mouse as it happens in the simple listbox. However the bind-method is never called. I saw that in the treeview.tcl it is binded to some drag method. Is there a way to

[Tkinter-discuss] (no subject)

2020-03-04 Thread Vasilis Vlachoudis
I had the impression that tkinter is single threaded, but it seems that the breakpoint() or input() does not block the mainloop to continue If one clicks the second button that waits for an input or enter in the breakpoint() the mainloop is still responsive while it waits for an input. So one

[Tkinter-discuss] tk bug in wait_visibility?

2020-02-14 Thread Vasilis Vlachoudis
In some dialogs I wanted to restore the size from the last time it was opened therefore, before calling the wait_window I have self.wait_visibility() self.geometry(...restore...) #<<< the geometry setting will not work if it is not visible self.wait_window() If something happens during the

[Tkinter-discuss] Debug mainloop events

2020-02-13 Thread Vasilis Vlachoudis
Hi all, is there a way to debug the mainloop events execution. I want to check which functions are causing some delay. The code is too big to run with a profiler and/or add some decorators in every function. What I would like is to have full control of the main loop, replace it with something

[Tkinter-discuss] horizontal line in Text

2020-01-16 Thread Vasilis Vlachoudis
Hi all, is it possible to draw a horizontal line in the Text() widget, something like the in html, extending all over the widget. Vasilis ___ Tkinter-discuss mailing list Tkinter-discuss@python.org

Re: [Tkinter-discuss] wait_window exception

2020-01-06 Thread Vasilis Vlachoudis
hael Lange [klappn...@web.de] Sent: Friday, December 27, 2019 08:20 To: Vasilis Vlachoudis Cc: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] wait_window exception Hi, On Wed, 25 Dec 2019 17:04:04 +0000 Vasilis Vlachoudis wrote: > Thanks Michael > my best wishes to you too. &g

Re: [Tkinter-discuss] wait_window exception

2019-12-25 Thread Vasilis Vlachoudis
eption Hi, sorry for the late reply. On Wed, 18 Dec 2019 15:54:04 +0000 Vasilis Vlachoudis wrote: > What is the correct way to open a dialog and wait for the window > Typically I am doing the following > on a class sub

[Tkinter-discuss] wait_window exception

2019-12-18 Thread Vasilis Vlachoudis
What is the correct way to open a dialog and wait for the window Typically I am doing the following on a class subclassed of Toplevel # -- def __init__(self, title=None, master=None,

Re: [Tkinter-discuss] tkinter.PhotoImage to PIL.Image

2019-12-06 Thread Vasilis Vlachoudis
Thanks Michael, at present my program is based that all the images are loaded as tkinter.PhotoImage. I am trying always to keep the python dependencies as low as possible. PIL is not required apart when the user wants some specific functionality (add-ons) So for the case that someone wanted

[Tkinter-discuss] tkinter.PhotoImage to PIL.Image

2019-11-30 Thread Vasilis Vlachoudis
Hi all, I have several images loaded as tkinter.PhotoImage, I want some to resize them The PhotoImage zoom accepts only integer values and the result is not that great. While if load them with PIL resize them and then convert to PIL.ImageTk it is much better. I found several references on how

Re: [Tkinter-discuss] busy mouse cursor for application

2019-11-28 Thread Vasilis Vlachoudis
Sent: Thursday, November 28, 2019 15:55 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] busy mouse cursor for application El 28/11/2019 a las 09:59 a. m., Vasilis Vlachoudis escribió: > Hi all, > > how can I display the cursor as the watch for the whole application. > When

[Tkinter-discuss] busy mouse cursor for application

2019-11-28 Thread Vasilis Vlachoudis
Hi all, how can I display the cursor as the watch for the whole application. When I set it on the toplevel window as self.toplevel.config(cursor="watch") it displays the cursor almost everywhere (I believe where the cursor is "") except for the widgets like Entry, Text that have the

Re: [Tkinter-discuss] Detecting tk/tcl include library path

2019-10-16 Thread Vasilis Vlachoudis
, 2019 19:52 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Detecting tk/tcl include library path El 15/10/2019 a las 01:02 p. m., Vasilis Vlachoudis escribió: > Hi all, > > how can I detect in a makefile the path of the include C header files of > tk/tcl? Two ways. >

[Tkinter-discuss] Detecting tk/tcl include library path

2019-10-15 Thread Vasilis Vlachoudis
Hi all, how can I detect in a makefile the path of the include C header files of tk/tcl? There is no tk-config program to return it like other packages. I see that every system puts the C header files in a different location like /usr/include/tk /usr/include/tk8.6 /sw/include/tcl8.6

[Tkinter-discuss] ttk scrollbar add top/bottom buttons

2019-10-10 Thread Vasilis Vlachoudis
Hi all, I am trying to add two buttons in the ttk scrollbar (in addition to the existing up/down) move to top, move to bottom, which I need when I open huge lists. Is it possible? I know that I can create my own Frame include the scrollbar and two buttons, but I believe it would be more elegant

Re: [Tkinter-discuss] Text to postscript

2019-06-24 Thread Vasilis Vlachoudis
d [came...@phaseit.net] Sent: Wednesday, June 19, 2019 15:52 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Text to postscript On Tue, Jun 18, 2019 at 11:21:29PM +0200, Michael Lange wrote: . . . > On Tue

Re: [Tkinter-discuss] ttk.Notebook: autohide

2019-06-02 Thread Vasilis Vlachoudis
] on behalf of Michael Lange [klappn...@web.de] Sent: Friday, May 31, 2019 00:33 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] ttk.Notebook: autohide Hi, On Thu, 30 May 2019 19:49:33 + Vasilis Vlachoudis wrote: > Many thanks Michael. > The recipe works the tab bar disa

Re: [Tkinter-discuss] ttk.Notebook: autohide

2019-05-30 Thread Vasilis Vlachoudis
: [Tkinter-discuss] ttk.Notebook: autohide Hi, On Wed, 29 May 2019 13:01:16 + Vasilis Vlachoudis wrote: > Hi all > > I am using the ttk.Notebook for an editor like application and I want > to implement something like autohide functionality for the tabheadings > when there

[Tkinter-discuss] ttk.Notebook: autohide

2019-05-29 Thread Vasilis Vlachoudis
Hi all I am using the ttk.Notebook for an editor like application and I want to implement something like autohide functionality for the tabheadings when there is only one tab, and to reappear when there are more than one. Is there some function to set the height to 0 for the headings of

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-14 Thread Vasilis Vlachoudis
May 2019 13:53:54 +0000 Vasilis Vlachoudis wrote: > Thanks all for your replies. > I've saw that there is a difference in the event.state, but I cannot > find any information on what each bit represents. > I modified your leave() callback using the values given at: https://infohost.n

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-12 Thread Vasilis Vlachoudis
xubuntu to be more precise From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Vasilis Vlachoudis [vasilis.vlachou...@cern.ch] Sent: Sunday, May 12, 2019 19:49 To: Michael Lange; tkinter-discuss@python.org

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-12 Thread Vasilis Vlachoudis
Hi Michael, I am using Ubuntu 19.04 with python 3.7 and tk 8.6.9+1 Vasilis Vlachoudis Dep EN, CERN CH-1211 GENEVA 23 SWITZERLAND Phone: +41-22 767 9851 GSM:+41-75 411 4378 From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern

[Tkinter-discuss] Button event calls Leave/Enter

2019-05-09 Thread Vasilis Vlachoudis
Hi all, I've just realized that the mouse click event generates as well a followed by event before. With the program below, if one clicks in the frame you get the messages printed Leave event Enter event Button1 pressed Which I don't understand the reasoning behind. However it generates a

Re: [Tkinter-discuss] Event debugging

2018-12-21 Thread Vasilis Vlachoudis
+vasilis.vlachoudis=cern...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Thursday, December 20, 2018 23:46 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Event debugging Hi, On Thu, 20 Dec 2018 14:47:39 + Vasilis Vlachoudis wrote: > Simple print doesn't work, since I do

Re: [Tkinter-discuss] Event debugging

2018-12-20 Thread Vasilis Vlachoudis
: [Tkinter-discuss] Event debugging Hi, On Mon, 17 Dec 2018 07:52:52 + Vasilis Vlachoudis wrote: > Hi all > > in my application there is one listbox which has a bind > ("",...) strangely enough under some OS the Double-1 is not > working. For example in Fe

[Tkinter-discuss] Event debugging

2018-12-16 Thread Vasilis Vlachoudis
Hi all in my application there is one listbox which has a bind("",...) strangely enough under some OS the Double-1 is not working. For example in Fedora with KDE it works ok but not on Ubuntu with XFCE. Is there a way to debug the events? I believe that some other widget is intercepting the

Re: [Tkinter-discuss] Text editing and tags...

2018-12-12 Thread Vasilis Vlachoudis
ge [klappn...@web.de] Sent: Tuesday, December 11, 2018 20:54 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Text editing and tags... Hi Vasilis, On Tue, 11 Dec 2018 13:45:10 +0000 Vasilis Vlachoudis wrote: > Hi all, > > Considering the following code, it creates a Text(

[Tkinter-discuss] Text editing and tags...

2018-12-11 Thread Vasilis Vlachoudis
Hi all, Considering the following code, it creates a Text() and adds the word "Red" with tag "red" and "Normal" without afterwords without any tag. If you click the cursor in between the two letters d|N from (Red"d" and "N"ormal) and you start typing, the newly inserted text will be black

Re: [Tkinter-discuss] Text drag

2018-11-04 Thread Vasilis Vlachoudis
To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Text drag Hi, On Sun, 4 Nov 2018 19:37:29 + Vasilis Vlachoudis wrote: (...) > #1. However I cannot get rid of the #1. I've tried to subclass the > #DndHandler() > especially the on_motion() method to delete the t

[Tkinter-discuss] Text drag

2018-10-31 Thread Vasilis Vlachoudis
Hi all, moving from Canvas() to Text() I wanted to re-implement the same drag functionality I have. I created a small test program show my problem(s). I am creating two, Toplevel windows with MyText() inside. The MyText extends the Text and adds a drag For demonstration I've binded on the

Re: [Tkinter-discuss] Text: immutable strings

2018-10-28 Thread Vasilis Vlachoudis
the processing of the key. Cheers Cam Farnell On 2018-10-26 12:12 p.m., Vasilis Vlachoudis wrote: > Hi all, > > I have a Text() widget and I want to display some values tab formatted. > The values should be prefixed with a text-label which is immutable by the > user > something like &

[Tkinter-discuss] Text: immutable strings

2018-10-26 Thread Vasilis Vlachoudis
Hi all, I have a Text() widget and I want to display some values tab formatted. The values should be prefixed with a text-label which is immutable by the user something like label: valuelabel: value the user should be able to edit the values but not the labels. I know that I can

Re: [Tkinter-discuss] clipboard and bytes

2018-03-01 Thread Vasilis Vlachoudis
. From: Vasilis Vlachoudis Sent: Thursday, March 01, 2018 17:13 To: Michael Lange; tkinter-discuss@python.org Subject: RE: [Tkinter-discuss] clipboard and bytes I did something else. I've used the binascii.b2a_hex() and a2b_hex() functions to convert the bytes() to a hex

Re: [Tkinter-discuss] clipboard and bytes

2018-03-01 Thread Vasilis Vlachoudis
in a form of ascii. Is there a way to create a new mime format and advertise the format somehow in the clipboard? Vasilis From: Vasilis Vlachoudis Sent: Thursday, March 01, 2018 16:42 To: Michael Lange; tkinter-discuss@python.org Subject: RE: [Tkinter-discuss

Re: [Tkinter-discuss] clipboard and bytes

2018-03-01 Thread Vasilis Vlachoudis
Many thanks! I works within the same process. When I try to launch it twice, so I can have clipboard exchange between different processes I get the following exception: Traceback (most recent call last): File "/usr/lib/python3.6/tkinter/__init__.py", line 1702, in __call__ return

[Tkinter-discuss] clipboard and bytes

2018-02-28 Thread Vasilis Vlachoudis
Hi all, I took the decision to convert my program to python3. I am stuck with the clipboard handling str vs bytes How can I get/receive bytes instead of str with the clipboard? What I was doing up to now was opening a StringIO stream dump a header and the objects as a dump from Pickler Up to

Re: [Tkinter-discuss] listdir

2018-02-16 Thread Vasilis Vlachoudis
vlachoudis=cern...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Thursday, February 15, 2018 20:32 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] listdir Hi, On Thu, 15 Feb 2018 10:24:10 +0000 Vasilis Vlachoudis <vasilis.vlachou...@cern.ch> wrote: >

[Tkinter-discuss] listdir

2018-02-15 Thread Vasilis Vlachoudis
Hi all, I know that it it is not related to tkinter, but I had troubles in submitting in the general python list. I was trying to make my custom FileDialog to handle unicode filenames and I stuck with the following behavior (python v2.7) #path = "/home/bnv/Download" path = u"/home/bnv/Download"

Re: [Tkinter-discuss] Convert Canvas to bitmap image

2017-10-24 Thread Vasilis Vlachoudis
Thank you very much! It is a good option to explore. Thanks Vasilis From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Monday, October 23, 2017 19:07 To:

[Tkinter-discuss] Convert Canvas to bitmap image

2017-10-23 Thread Vasilis Vlachoudis
Dear all, what can be the most efficiency way of converting the canvas to a bitmap (what ever type, gif png, jpg...) image? Right now we are saving to postscript and then using the PIL library convert it to bitmap. Thanks in advance Vasilis ___

Re: [Tkinter-discuss] Drag n drop from another application

2017-08-25 Thread Vasilis Vlachoudis
Subject: Re: [Tkinter-discuss] Drag n drop from another application Hi Vasilis, On Fri, 25 Aug 2017 08:21:03 + Vasilis Vlachoudis <vasilis.vlachou...@cern.ch> wrote: > Thank you Michael, > > is this the same with the Tkdnd.py module inside tkinter, or it is an > extension of

Re: [Tkinter-discuss] Drag n drop from another application

2017-08-25 Thread Vasilis Vlachoudis
: Thursday, August 24, 2017 23:26 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Drag n drop from another application Hi Vasilis, On Thu, 24 Aug 2017 14:04:15 + Vasilis Vlachoudis <vasilis.vlachou...@cern.ch> wrote: > Hi All, > > is there a way to catch a drop signal

[Tkinter-discuss] Drag n drop from another application

2017-08-24 Thread Vasilis Vlachoudis
Hi All, is there a way to catch a drop signal from KDE, GNOME, etc.. e.g. dragging a file from the file browser in x11 to an application with Tkinter Thanks in advance Vasilis ___ Tkinter-discuss mailing list Tkinter-discuss@python.org

Re: [Tkinter-discuss] Define height in a row of a grid manager

2017-02-04 Thread Vasilis Vlachoudis
discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Saturday, February 04, 2017 01:36 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Define height in a row of a grid manager Hi, On Fri, 3 Feb 2017 16:35:53 + Vasilis Vla

[Tkinter-discuss] Define height in a row of a grid manager

2017-02-03 Thread Vasilis Vlachoudis
Dear all, I am trying to optimize the screen space use in a small screen QVGA mounted on a RPi On the first row (using the grid manager) I display the time with big fonts. The space allocated for the row includes, correctly includes the descent of the font however in the case of numbers its an

Re: [Tkinter-discuss] Frame button binding

2016-09-09 Thread Vasilis Vlachoudis
Thanks John, if I have to bind in all children the "check" function, when I would find it simpler to bind the dragStart directly Vasiis From: johnmc [joh...@velseis.com] Sent: Thursday, September 08, 2016 12:21 To: Vasilis Vlachoudis; tkint

Re: [Tkinter-discuss] Frame button binding

2016-09-09 Thread Vasilis Vlachoudis
, 2016 22:47 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Frame button binding Hi, On Wed, 7 Sep 2016 14:01:19 + Vasilis Vlachoudis <vasilis.vlachou...@cern.ch> wrote: > Until now I had the scrollbar working which is not very elegant vs the > Mouse Wheel or middl

Re: [Tkinter-discuss] Frame button binding

2016-09-07 Thread Vasilis Vlachoudis
Sep 2016 09:00:45 + Vasilis Vlachoudis <vasilis.vlachou...@cern.ch> wrote: > Hi all, > > I want to create a Scrolled Frame, it works nicely with the place > command however when I bind the B2-Motion, and I click the middle mouse > button on the child buttons instead of dra

Re: [Tkinter-discuss] Frame button binding

2016-09-07 Thread Vasilis Vlachoudis
12:31 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Frame button binding Hi, On Wed, 7 Sep 2016 10:21:02 + Vasilis Vlachoudis <vasilis.vlachou...@cern.ch> wrote: > Thanks for the idea. It will make the code indeed odd. > I was looking for a less intrusive metho

Re: [Tkinter-discuss] Frame button binding

2016-09-07 Thread Vasilis Vlachoudis
=cern...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Wednesday, September 07, 2016 11:53 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Frame button binding Hi, On Wed, 7 Sep 2016 06:31:06 + Vasilis Vlachoudis <vasilis.vlachou...@cern.ch> wrote: > H

[Tkinter-discuss] Toplevel background

2016-09-06 Thread Vasilis Vlachoudis
Hi all, I have a window which I make full screen with the option tk = Tk() tk.attributes("-fullscreen", True) c = Canvas(tk, background="Black") c.pack(expand=YES, fill=BOTH, padx=0, pady=0) and displays a full screen "Black" canvas. despite I h ave padx=pady=0 I always get 1 pixel White frame

[Tkinter-discuss] Frame button binding

2016-09-06 Thread Vasilis Vlachoudis
Hi all, I want to create a Scrolled Frame, it works nicely with the place command however when I bind the B2-Motion, and I click the middle mouse button on the child buttons instead of dragging it does nothing, since they are capturing the B2 and not propagate it to the master.

Re: [Tkinter-discuss] Dialog as transient above current toplevel

2016-08-25 Thread Vasilis Vlachoudis
.grab_set() self.focus_set() self.wait_window() #--- def close(self, num=-1): self.num = num self.destroy() _________

[Tkinter-discuss] Dialog as transient above current toplevel

2016-08-24 Thread Vasilis Vlachoudis
Dear all, in my program I want to provide a more understandable text in the simple dialogs for exiting the program if there is modified buffer and some other messages. Instead of creating one dialog for each I use the tkinter dialog Dialog.py like import Dialog ... ans =

[Tkinter-discuss] Centering grid inside a frame

2015-06-25 Thread Vasilis Vlachoudis
Hi all, I want to centre a grid layout (with fixed size) inside a frame e.g. if I do the following tk = Tk() Button(tk, text=button1).grid(row=0, column=0, sticky=NSEW) Button(tk, text=button2).grid(row=0, column=1, sticky=NSEW) Button(tk, text=button3).grid(row=1, column=0, sticky=NSEW)

[Tkinter-discuss] Persistent Listbox selection

2015-03-09 Thread Vasilis Vlachoudis
Dear all, how can I keep the listbox selection persistent when user selects something in the entry? In the following example, the rows 0 to 10 are selected in the listbox If you click and select something in the entry box the selection is lost Is there an option to avoid this behaviour? Best

[Tkinter-discuss] Text folding of text

2015-01-22 Thread Vasilis Vlachoudis
Dear all, I want to create a text box with folding capabilities. To show/hide lines of text (probably using the elide function) but when I hide the text I want it to be replaced by one line + 10 lines folded that extends to the full width of the text widget and the editing is disabled on

Re: [Tkinter-discuss] Event debugger

2015-01-05 Thread Vasilis Vlachoudis
Happy new year Mattias, Is it possible to use xev to monitor another window's events? V. From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of mkieve...@tlink.de [mkieve...@tlink.de] Sent: 04 January 2015

Re: [Tkinter-discuss] Event debugger

2015-01-05 Thread Vasilis Vlachoudis
-discuss] Event debugger Hi Vasilis, On Mon, 5 Jan 2015 10:44:22 + Vasilis Vlachoudis vasilis.vlachou...@cern.ch wrote: Happy new year Mattias, Is it possible to use xev to monitor another window's events? you can use this simple technique for that: import Tkinter from subprocess import

[Tkinter-discuss] Text() highlight

2014-08-25 Thread Vasilis Vlachoudis
Hi all, I am trying to implement a small g-code editor and real time viewer in tkinter. I am using the Text() widget as an editor, but I have troubles in highlighting the text during editing. Its slow when editing big files. below is the highlighting routine The routine is scanning for all

[Tkinter-discuss] Transient, grab and focus problems...

2014-05-20 Thread Vasilis Vlachoudis
Dear all in my application I have some toplevels that appear as InPlaceEdit for Listboxes when the user clicks a field in a listbox. This time I've tried to create a 2 nested level toplevel, but I am completely losing the focus on the return and I didn't find any way to restore it. Bellow

Re: [Tkinter-discuss] Transient, grab and focus problems...

2014-05-20 Thread Vasilis Vlachoudis
[tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Vasilis Vlachoudis [vasilis.vlachou...@cern.ch] Sent: 20 May 2014 15:20 To: tkinter-discuss@python.org Subject: [Tkinter-discuss] Transient, grab and focus problems... Dear all in my application I have some toplevels

Re: [Tkinter-discuss] Interrupt a long process

2014-02-14 Thread Vasilis Vlachoudis
] Interrupt a long process Hi, On Fri, 7 Feb 2014 16:46:58 + Vasilis Vlachoudis vasilis.vlachou...@cern.ch wrote: Hi all, in my canvas sometimes it happens to have a long process to insert lots of items. This typically takes a lot of time (up to min) so I want to give the possibility

[Tkinter-discuss] PanedWindow placement of sash

2013-09-19 Thread Vasilis Vlachoudis
Hi all, I am trying to save on exit and restore on startup the placement of the sash in the PanedWindow, with a code like this from Tkinter import * tk = Tk() p = PanedWindow(tk, orient=HORIZONTAL, width=600) p.pack(expand=YES,fill=BOTH) f1 = Label(p, text=First, bg=Red) p.add(f1) f2 =

Re: [Tkinter-discuss] PanedWindow proportional resizing of panes

2012-05-10 Thread Vasilis Vlachoudis
the sash is changed? Thanks in advance Vasilis From: Emiliano Gavilan [emilianogavi...@gmail.com] Sent: 09 May 2012 19:03 To: Vasilis Vlachoudis Cc: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] PanedWindow proportional resizing of panes 2012

[Tkinter-discuss] PanedWindow proportional resizing of panes

2012-05-09 Thread Vasilis Vlachoudis
Hi all, in my application I am using the recipe of http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52266 to create a multilistbox. I have modified it to use the panedwindow in order to allow the resize of the rows, like in the code below. My problem(s) (all related to the resizing of the

Re: [Tkinter-discuss] Muti-column menu

2011-11-03 Thread Vasilis Vlachoudis
November 2011 11:36 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Muti-column menu Hi Vasilis, Thus spoketh Vasilis Vlachoudis vasilis.vlachou...@cern.ch unto us on Wed, 2 Nov 2011 20:51:43 +: Hi All, in my application I have a submenu (appearing both on the menu bar

Re: [Tkinter-discuss] Muti-column menu (cont)

2011-11-03 Thread Vasilis Vlachoudis
(), tk.winfo_pointery()) tk = Tk() tk.bind(3,showMenu) tk.mainloop() Vasilis From: Vasilis Vlachoudis Sent: 03 November 2011 11:48 To: Michael Lange; tkinter-discuss@python.org Subject: RE: [Tkinter-discuss] Muti-column menu Thank you very much. Exactly what I

[Tkinter-discuss] Muti-column menu

2011-11-02 Thread Vasilis Vlachoudis
Hi All, in my application I have a submenu (appearing both on the menu bar and with right-click) that contains many entries ~30. But it has to be in one submenu since they are various types of geometrical bodies to insert. Is there a way to create a multi-column sub-menu in Tkinter? Thanks in

[Tkinter-discuss] Checkbutton label-box order

2011-01-18 Thread Vasilis Vlachoudis
Hi all, How can I create a checkbutton with the text-label on the left Checkbutton(frame, text=Label, variable=...) Label [x] The standard one has the button on the left and the label on the right [x] Label I didn't find any option to change the order. I don't want to create the label and the

[Tkinter-discuss] Binding all children

2010-12-21 Thread Vasilis Vlachoudis
Hi all, Based on the previous threads I added the nice scrolled.py implementation of a ScrollFrame in my application and now I wanted to bind the Button-45 and MouseWheel events to the scrolled frame. My frames are a bit crowded therefore the real area that belongs to the client-scrolledframe

[Tkinter-discuss] (no subject)

2010-12-20 Thread Vasilis Vlachoudis
the test getting the string testbar with the test highlighted. Do you know how I can change the behavior without the need to override the default Entry class and substitute it in the whole project? Vasilis Vlachoudis Dep EN, CERN CH-1211 GENEVA 23 SWITZERLAND Phone: +41-22 767 9851 GSM:+41

Re: [Tkinter-discuss] (no subject)

2010-12-20 Thread Vasilis Vlachoudis
To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] (no subject) Hi Thus spoketh Vasilis Vlachoudis vasilis.vlachou...@cern.ch unto us on Mon, 20 Dec 2010 14:05:33 +: Dear all, the default behavior of the Entry/Text on how they react to CutPaste is a bit problematic (at least on linux

Re: [Tkinter-discuss] Correct order for dialog display

2010-09-30 Thread Vasilis Vlachoudis
-- --- Vasilis Vlachoudis Dep. EN-STI-EET Web: home.cern.ch/bnv Tel: +41-22-7679851 Fax: +41-22-7669644 --- ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter

Re: [Tkinter-discuss] How to capture exceptions after the end of the program

2010-07-01 Thread Vasilis Vlachoudis
-- --- Vasilis Vlachoudis Dep. EN-STI-EET Web: home.cern.ch/bnv Tel: +41-22-7679851 Fax: +41-22-7669644 --- ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org

[Tkinter-discuss] How to capture exceptions after the end of the program

2010-06-25 Thread Vasilis Vlachoudis
the end of the program to avoid the exceptions. However with fonts I can miss something e.g replace a font and exit afterwards. Thanks in advance Vasilis -- --- Vasilis Vlachoudis Dep. EN-STI-EET Web: home.cern.ch/bnv Tel: +41-22-7679851 Fax

  1   2   >