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() window.clipboard_append(image_buffer.re

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
roy())   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 20

[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 up/dow

[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 filling

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 ex

[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 widget

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 https://mail.python.org/mailman/

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

2022-03-17 Thread Vasilis Vlachoudis
Re: [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
operly placed 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

[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 ___ Tk

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

2021-07-14 Thread Vasilis Vlachoudis
they 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.vlachoud

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

2021-07-14 Thread Vasilis Vlachoudis
asure` 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

[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 no

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,

[Tkinter-discuss] Exception protection to tk calls

2021-03-30 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 like

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
quot;,log.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

[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 abo

[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 a

[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 can

[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 f

[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 l

Re: [Tkinter-discuss] horizontal line in Text

2020-01-25 Thread Vasilis Vlachoudis
Thanks That's the easiest from all, and for my purpose it works just fine Vasilis From: Bryan Oakley [bryan.oak...@gmail.com] Sent: Friday, January 24, 2020 16:04 To: Vasilis Vlachoudis Subject: Re: [Tkinter-discuss] horizontal line in Text What I'

Re: [Tkinter-discuss] horizontal line in Text

2020-01-16 Thread Vasilis Vlachoudis
Subject: Re: [Tkinter-discuss] horizontal line in Text Hi, On Thu, 16 Jan 2020 13:14:08 + Vasilis Vlachoudis wrote: > Hi all, > > is it possible to draw a horizontal line in the Text() widget, something > like the in html, extending all over the widget. I have done this before with

[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 https://mail.python.org/mailman/listinfo/tkinter-discu

Re: [Tkinter-discuss] wait_window exception

2020-01-06 Thread Vasilis Vlachoudis
: Michael 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 + Vasilis Vlachoudis wrote: > Thanks Michael > my best wishes to you too.

Re: [Tkinter-discuss] wait_window exception

2019-12-25 Thread Vasilis Vlachoudis
w exception Hi, sorry for the late reply. On Wed, 18 Dec 2019 15:54:04 + 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 clas

[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 to

[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 to

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 I set

[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 cursor="xterm"

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 /opt/local/in

[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 i

Re: [Tkinter-discuss] Text to postscript

2019-06-24 Thread Vasilis Vlachoudis
Laird [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 Tu

Re: [Tkinter-discuss] Text to postscript

2019-06-18 Thread Vasilis Vlachoudis
...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Tuesday, June 18, 2019 11:16 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Text to postscript Hi, On Mon, 17 Jun 2019 12:16:49 + Vasilis Vlachoudis wrote: > Hi all, > > Canvas has this nice method to conv

[Tkinter-discuss] Text to postscript

2019-06-17 Thread Vasilis Vlachoudis
Hi all, Canvas has this nice method to convert it to postscript, which is perfect for printing. Is there something similar for Text(), I could not find anything internal but if there is something external to convert to html, ps, pdf it would be nice. Many thanks Vasilis

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 is only

[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 "pack_f

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://infoh

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

2019-05-14 Thread Vasilis Vlachoudis
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. V. From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of mk

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 probl

Re: [Tkinter-discuss] Event debugging

2018-12-21 Thread Vasilis Vlachoudis
unces+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,

Re: [Tkinter-discuss] Event debugging

2018-12-20 Thread Vasilis Vlachoudis
ss@python.org Subject: Re: [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

[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 Butto

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

2018-12-12 Thread Vasilis Vlachoudis
half of Michael Lange [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 + Vasilis Vlachoudis wrote: > Hi all, > > Considering the following code

[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 witho

tkinter-discuss@python.org

2018-11-04 Thread Vasilis Vlachoudis
nday, November 04, 2018 22:56 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Text drag&drop 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

tkinter-discuss@python.org

2018-11-04 Thread Vasilis Vlachoudis
ss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Vasilis Vlachoudis [vasilis.vlachou...@cern.ch] Sent: Wednesday, October 31, 2018 15:27 To: tkinter-discuss@python.org Subject: [Tkinter-discuss] Text drag&drop Hi all, moving from Canvas() to Text() I wanted to re

tkinter-discuss@python.org

2018-10-31 Thread Vasilis Vlachoudis
Hi all, moving from Canvas() to Text() I wanted to re-implement the same drag&drop 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&drop. For demonstration I've binded on

Re: [Tkinter-discuss] Text: immutable strings

2018-10-28 Thread Vasilis Vlachoudis
h will stop 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 > s

[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 i

Re: [Tkinter-discuss] clipboard and bytes

2018-03-01 Thread Vasilis Vlachoudis
possible mime/formats available. V. ________ 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() f

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-di

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 self.func

[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 n

Re: [Tkinter-discuss] listdir

2018-02-16 Thread Vasilis Vlachoudis
Lange [klappn...@web.de] Sent: Friday, February 16, 2018 10:24 To: Vasilis Vlachoudis Cc: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] listdir Hi, On Fri, 16 Feb 2018 08:49:01 + Vasilis Vlachoudis wrote: > Thank you Michael, > > my locale is UTF-8 when I get the error >

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 wrote: > Hi all, > > I know that it i

[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-disc

[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 ___ Tkinte

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 wrote: > Thank you Michael, > > is this the same with the Tkdnd.py module inside tkinter, or it is an > extension of it? no, Tkdnd.py is pure Tkinter

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 wrote: > Hi All, > > is there a way to catch a drop signal from KDE, GNOME, etc.. > e.g

[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 https://mail.pyth

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

2017-02-12 Thread Vasilis Vlachoudis
ry 07, 2017 11:19 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Define height in a row of a grid manager Hi, On Sat, 4 Feb 2017 10:16:01 + Vasilis Vlachoudis wrote: > Hi Michael, > > I was just trying to reply to my self with the solution I've found, > while I re

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

2017-02-04 Thread Vasilis Vlachoudis
r-discuss [tkinter-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

[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 wrote: > Until now I had the scrollbar working which is not very elegant vs the > Mouse Wheel or middle mouse drag. Everything started in

Re: [Tkinter-discuss] Frame button binding

2016-09-09 Thread Vasilis Vlachoudis
] on behalf of Michael Lange [klappn...@web.de] Sent: Wednesday, September 07, 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 wrote: > Until now I had the scrollbar working which is not v

Re: [Tkinter-discuss] Frame button binding

2016-09-07 Thread Vasilis Vlachoudis
ue, 6 Sep 2016 09:00:45 + Vasilis Vlachoudis 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 dragging it does nothing, since

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 wrote: > Thanks for the idea. It will make the code indeed odd. > I was looking for a less intrusive method, something that I could > easil

Re: [Tkinter-discuss] Frame button binding

2016-09-07 Thread Vasilis Vlachoudis
oudis=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 wrote: > Hi Michael, > > the Scr

[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 a

[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. SimplifiedExample

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

2016-08-25 Thread Vasilis Vlachoudis
ibility() self.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 = Dialog.Dialog(self.winfo

[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) Bu

Re: [Tkinter-discuss] (no subject)

2015-05-31 Thread Vasilis Vlachoudis
, 31 May 2015 09:21:20 + Vasilis Vlachoudis wrote: > Hi All, > > my question is not tkinter related but I could not find any help on that > I am compiling a list of commands for faster access in my application. > How can I check the type of a compiled object with isinstan

[Tkinter-discuss] (no subject)

2015-05-31 Thread Vasilis Vlachoudis
Hi All, my question is not tkinter related but I could not find any help on that I am compiling a list of commands for faster access in my application. How can I check the type of a compiled object with isinstance()? >>> c = compile("x+y","","eval") >>> isinstance(c,code) Traceback (most recent

[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 Reg

[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
-discuss] Event debugger Hi Vasilis, On Mon, 5 Jan 2015 10:44:22 + Vasilis Vlachoudis 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 Popen, PIP

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 13:

[Tkinter-discuss] Event debugger

2014-12-28 Thread Vasilis Vlachoudis
Hi all, in my application I have a lost event in a multi listbox. The program is quite long about 10 lines of code and I cannot find where the event is lost. My suspicion is that I lose the Focus in the middle of the double event. When I use or everything works, but not with the . So my qu

[Tkinter-discuss] Event debugger

2014-12-28 Thread Vasilis Vlachoudis
Hi all, in my application I have a lost event in a multi listbox to activate . The program is quite long about 10 lines of code and I cannot find where the event is lost. My su ___ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail

Re: [Tkinter-discuss] Text() highlight

2014-08-26 Thread Vasilis Vlachoudis
st 2014 10:34 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Text() highlight On Mon, 25 Aug 2014 14:15:59 +0000 Vasilis Vlachoudis wrote: > 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

[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 patte

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

[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 there

  1   2   >