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
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
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
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
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 +
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
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
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
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
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
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
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]
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
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
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
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
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
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
_
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,
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
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
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
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
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
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
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
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
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
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'
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
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
: 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.
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
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,
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
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
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
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"
, 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.
>
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
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
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
...@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
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
] 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
: [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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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"
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
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
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
: 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
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
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
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
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
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
, 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
] 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
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
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
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
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
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
ibility()
self.grab_set()
self.focus_set()
self.wait_window()
#---
def close(self, num=-1):
self.num = num
self.destroy()
______
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
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
, 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
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
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
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
-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
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:
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
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
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
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
[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
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 - 100 of 145 matches
Mail list logo