n(filename)
image.save(image_buffer, format="PNG")
image_buffer.seek(0)
root.clipboard_clear()
root.clipboard_append(image_buffer.getvalue(), type="image/png")
This seems to work well here under X11.
Have a nice day,
Michael
On Wed, 28 Feb 2024 11:29:53 +0100
Mic
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 tried several suggestions found in the web to no avail.
Finally for once an AI
Hi,
On Wed, 10 Jan 2024 16:33:46 -0400
Cam Farnell wrote:
> To answer my own question: the focus was being given to another widget
> after the code in question had executed.
>
> That said, I still don't understand why focus_set followed by
> update_idletasks followed by focus_get would return
Hi,
On Tue, 19 Sep 2023 09:34:34 +
Vasilis Vlachoudis wrote:
> Using column breaks and sub-menus, makes navigation with the mouse
> almost impossible. e.g. with the code below
>
> * open the menu
> * hover the mouse over "one"
> * hover the mouse over "Item #40"
> *to
Hi Vasilis,
On Fri, 15 Sep 2023 09:55:49 +
Vasilis Vlachoudis wrote:
> Hi Michael,
>
> here is a snipped of a code and what I've managed up to now
thanks, I get your point now :-)
I toyed around with your example a bit and came up with a custom menu
class (see below; for testing I added a
Hi Vasilis,
On Wed, 13 Sep 2023 15:57:10 +
Vasilis Vlachoudis wrote:
> 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
>
Hi Bob,
On Fri, 28 Jul 2023 13:00:10 -0600
Bob Greschke wrote:
> Hi Michael!
>
> I'm working up to Image.save("something.png"). The program will produce
> a picture for each of five different monitors each day, and then
> they'll end up on a web page, so a .png is desired. The program now
>
Hi,
On Fri, 28 Jul 2023 09:08:11 -0600
Bob Greschke wrote:
> Hi!
>
> I'm plotting some stuff to a Canvas() (second-by-second signal-to-noise
> values for GPS satellites) and using something like
>
>
>
> in the program to get the font to use for text labels and stuff on the
> canvas.
>
> I can't
Hi Vasilis,
On Wed, 31 May 2023 14:44:35 +
Vasilis Vlachoudis wrote:
> 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
Hi,
On Sun, 7 May 2023 08:34:29 +0800 (CST)
张小平 <13295564...@163.com> wrote:
> When i use Text or Label to show this :
> [
> [1,"PAGE",{"id":"w"}],
> [2,"Text",{"caption":"This is first GUI Page,totally different form
> HTML."}] ]
>
>
> It shows this:
> {1 PAGE {{'id': 'w'}}} {2 Text
Hi,
On Thu, 22 Sep 2022 16:17:50 +
Massimo POZZONI via Tkinter-discuss wrote:
>
> I'm wondering if there is any way to have a tkinter window running,
> while the main program is continuing its execution. I tried with
> threading but with no success.
>
> So far I always got the program to
Hi,
On Tue, 20 Sep 2022 08:05:36 +
Massimo POZZONI via Tkinter-discuss wrote:
(...)
> My problem is that I need an event that is triggered when the overall
> combox widget is left, which is not the FocusOut, because when I open
> the drop-down menu I am still using the widget, and it is not
Hi,
On Thu, 17 Mar 2022 09:47:16 +
Vasilis Vlachoudis wrote:
> Hi Michael,
>
> no I am using the default fonts.
> What is different is the I have set a high DPI for the X-server to
> match the screen resolution.
>
> I saw in the page
> https://www.tcl.tk/man/tcl/TkCmd/ttk_treeview.html
>
>
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 you possibly using a point-sized font? If yes, maybe there is some
Hi,
On Wed, 14 Jul 2021 14:22:37 +
Vasilis Vlachoudis wrote:
> I am trying to change the tk widgets to ttk, so I can globally correct
> them, e.g. root=tk.Tk()
> sb=ttk.Scrollbar(root)
> sb.pack(side=tk.RIGHT,fill=tk.Y)
> style=ttk.Style()
> style.configure("TScrollbar", width="10m")
>
>
Hi,
On Mon, 12 Jul 2021 20:31:57 +0100
E Paine wrote:
> > - all widths like borderwidths, decorations, separators etc, set in
> > pixels do not scale with the dpi settings. Could we use "mm" for their
> > settings instead?
>
> Definitely! The defaults in Tk use pixels, but you can use mm for
>
Hi,
On Mon, 12 Jul 2021 17:13:18 +
Vasilis Vlachoudis wrote:
> 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.
> -
Hi,
On Sat, 3 Jul 2021 12:22:17 +1200
Greg Ewing wrote:
> On 3/07/21 3:58 am, Michael Lange wrote:
> > Or maybe the printer has some
> > sort of hard-wired margin on each side that it cannot print on and
> > that ought to be taken into account
>
> Yes, most printe
On Fri, 2 Jul 2021 10:14:10 +0200
Paul Malherbe wrote:
> Hi Michael, this might help
>
> http://www.atmos.albany.edu/facstaff/rmctc/psrotate/
> signature Regards
>
> Paul Malherbe
thanks for the tip, it might possibly.
Meanwhile I found a better solution, though (see my other
post...
Hi,
thanks for the feedback!
On Fri, 2 Jul 2021 09:17:41 -0300
Emiliano Gavilan wrote:
> You can achieve what you want with the correct set of options to the
> canvas postscript() method, documented here:
>
> https://www.tcl.tk/man/tcl8.6/TkCmd/canvas.html#M61
yes, I have been looking at that
Hi,
I want to print the contents of a Canvas widget by feeding the output of
the postscript() command to lpr (I am working with linux here).
I would like that Canvas "screenshot" to be centered on the printed page
(in my case these are A4 pages which are standard here).
Unfortunately I do not
Hi,
On Thu, 1 Apr 2021 07:54:40 +
Vasilis Vlachoudis wrote:
> Thank you Michael,
>
> >> grab_release() on a widget that has already been destroyed or, in
> >> the/
>
> this is also my understanding, however the places that happens are on
> Dialog code(s) like
>
(...)
>
> My impression is
Hi,
On Wed, 31 Mar 2021 06:53:26 +
Vasilis Vlachoudis wrote:
> 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
Hi,
On Thu, 5 Nov 2020 21:52:08 -0800
Donald Rozenberg wrote:
> Hi,
>
> I am looking for a way to install Img in Windows 10 in such a way that
> the image support particularly for jpegs is available to the Tcl/Tk
> included in Tkinter.
>
> I have written a programming tool called PAGE in Tcl/Tk
Hi,
On Fri, 24 Jan 2020 16:44:30 +
Vasilis Vlachoudis wrote:
> 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
Hi,
On Fri, 24 Jan 2020 00:18:20 +
Alan Gauld via Tkinter-discuss wrote:
> On 16/01/2020 13:14, 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.
>
> Would a line of
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 an embedded Frame widget, however changes to
the Text widget
Hi,
On Mon, 6 Jan 2020 09:40:42 +
Vasilis Vlachoudis wrote:
> Happy new decade everyone!
>
> Interesting enough, removing the "deiconify()" the problem didn't
> reoccur. Maybe, not enough people test it, but I am happy that works on
> windows, linux and mac for the moment without the
Hi,
On Wed, 25 Dec 2019 17:04:04 +
Vasilis Vlachoudis wrote:
> Thanks Michael
> my best wishes to you too.
> The close method is the following, apart some bookkeeping nothing
> special.
> # --
> def close(self):
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 class subclassed of Toplevel
>
> #
Hi,
On Sun, 15 Dec 2019 18:29:18 +
Mike Barnett wrote:
> I've been fighting this error for a couple of years now and just when I
> think I've got it understood and "Fixed", it bites me again.
>
>
>
> Here's the error:
>
>
>
> Exception ignored in:
>
> Traceback (most recent call last):
>
>
Hi,
On Tue, 10 Dec 2019 12:49:27 +0200
Aivar Annamaa wrote:
> Hi!
>
> It looks like accessibility support in Tk won't happen
> (https://core.tcl-lang.org/tk/tktview/deb6cddecf55c6921281f8f855b6b366aed6467e).
> I'm wondering is it somehow possible to bolt on some accessibility
> support at least
Hi,
On Fri, 6 Dec 2019 08:36:18 +
Vasilis Vlachoudis wrote:
> 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
On Wed, 4 Dec 2019 19:25:45 +0100
Michael Lange wrote:
> resized = im.resize((height, width), IMAGE.ANTIALIAS)
^
oops, should be
resized = im.resize((width, height), IMAGE.ANTIAL
Hi,
sorry for the late replay.
On Sat, 30 Nov 2019 13:52:11 +
Vasilis Vlachoudis wrote:
> 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
Hi,
On Fri, 22 Nov 2019 16:00:07 +
Mike Barnett wrote:
> Hmmm... I didn't see am email go out for this. Did anyone get this
> email?
>
sure :)
> What I am trying to do is "style" ttk widgets in a way that each one
> can have their own unique settings. I've not found code or pseudo-code
Hi,
On Tue, 30 Jul 2019 15:43:53 +0530
Balasubramani K wrote:
> I have a questions :
> Cant we use tqdm progress bar in tkinter window ??
> In other words, can't we get a terminal window in tkinter window; where
> whatever the output of the code that is executed should be shown in the
>
Hi,
On Mon, 29 Jul 2019 15:26:30 +0530
Balasubramani K wrote:
> Hi ,
> I'm using following modules in python 3:
> import requests
> import os
> from tqdm import tqdm
>
>
> a piece of code from my script,
>
> requests.get(url, stream=True,allow_redirects=True)
> total_size =
Hi,
On Tue, 18 Jun 2019 10:09:08 +
Vasilis Vlachoudis wrote:
> Thanks Michael,
>
> not exactly what I was looking for.
oh yes, I thought so :)
> I am investigating how difficult is to write my own ps exporter,
> based on the Canvas postscript source code.
This would surely be awesome! In
Hi,
On Mon, 17 Jun 2019 12:16:49 +
Vasilis Vlachoudis wrote:
> 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
Hi,
On Sun, 2 Jun 2019 14:22:56 +
Vasilis Vlachoudis wrote:
> Many thanks
>
> The first solution works ok for me without any flickering
probably it depends on the speed of the machine. With an old and slow
laptop of mine the flickering effect appears to be a bit worse than on my
desktop
Hi,
On Thu, 30 May 2019 19:49:33 +
Vasilis Vlachoudis wrote:
> Many thanks Michael.
> The recipe works the tab bar disappears (and reappears), but the space
> of the tabs is not reclaimed. the child-window is not resized to get
> the extra space. If I resize the toplevel window with the
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 one tab, and to reappear when there are more than
>
Hi,
On Wed, 15 May 2019 05:50:24 +
Vasilis Vlachoudis wrote:
> Thanks.
> I did what you proposed
> if event.state>=256: # then mouse event, ignore...
>
> Maybe a bug report should be opened in XFCE? In the X11 events it states
> that Enter/LeaveNotify is only due to the cursor movement
>
Hi,
On Wed, 15 May 2019 05:50:24 +
Vasilis Vlachoudis wrote:
> Thanks.
> I did what you proposed
> if event.state>=256: # then mouse event, ignore...
>
> Maybe a bug report should be opened in XFCE? In the X11 events it states
> that Enter/LeaveNotify is only due to the cursor movement
>
Hi,
On Tue, 14 May 2019 13:53:54 +
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:
Hi,
On Mon, 13 May 2019 17:32:10 -
mkie...@web.de wrote:
> Hello,
>
> >very strange. Maybe an issue with the WM? Do you also use Xfce? Did you
> >(or Vasilis) try a different WM?
>
> To add some data about used WMs, not reproducible on:
> Python 3.5.3 (some small tkinter patches)
> tcl/tk
On Mon, 13 May 2019 10:27:12 +0200
Paul Malherbe wrote:
> Yes, definitely seems to be an xfce thing. Tried with gnome and worked
> fine.
Good to know that. Unfortunately this does not help much with the OP's
question :-(
Maybe some property of the event could be checked, if there is a
Hi,
On Mon, 13 May 2019 08:19:58 +0200
Paul Malherbe wrote:
> Same happens on Ubuntu 18.04 with python 2.7.15/3.6.7 and tcl/tk 8.6.8
very strange. Maybe an issue with the WM? Do you also use Xfce? Did you
(or Vasilis) try a different WM?
Regards
Michael
.-.. .. ...- . .-.. --- -. --.
Hi,
On Thu, 9 May 2019 07:58:42 +
Vasilis Vlachoudis wrote:
> Hi all,
>
> I've just realized that the mouse click event generates as
> well a followed by event before.
what system are you using and which version of Tcl/Tk?
I cannot reproduce that behavior here (Debian, Tk 8.6.6).
Hi,
On Mon, 29 Apr 2019 13:16:50 +0200
Sibylle Koczian wrote:
> Hello,
>
> the following script shows a Treeview with names and country codes of
> some towns in Germany. Towns with country code "HE" or "BY" should be
> shown with coloured background, in the case of "BY" additionally with
>
Hi again,
sorry for my somewhat disjointed replies :)
On Sun, 20 Jan 2019 20:30:35 +0100
Michael Lange wrote:
(...)
> l = ttk.Label(root)
> l.grid()
> l.tk.eval(l._w + ' configure -text "Test \U0001d306 String"')
>
> there is actually some character displayed which lo
Ooops, looks like I might need to correct myself.
On Sun, 20 Jan 2019 20:06:18 +0100
Michael Lange wrote:
(...)
> according to
> https://groups.google.com/forum/#!topic/comp.lang.tcl/OJqYYzCgKQo
> there is some work in progress with Tcl, otoh even if you install the
> latest Tcl/Tk
Hi,
On Sat, 19 Jan 2019 20:07:07 -0500
Ben wrote:
> Hi,
>
> Is there any way to make a Label display every Unicode character, or
> are we just stuck until Tcl/Tk fully supports all of unicode?
>
> Here's my example code:
> import tkinter as tk
> from tkinter import ttk
> root = tk.Tk()
>
Hi Chris,
On Thu, 10 Jan 2019 15:13:12 +1100
Chris Roy-Smith wrote:
> Hi
> System: Linux,
> Python Version: 3.6.7
>
> I am trying to learn how to bind to a widget, and process the contents
> of the bound widget
(...)
> I get the following traceback:
>
> Traceback (most recent
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 Fedora with KDE it works ok but not on Ubuntu
> with XFCE.
>
> Is there
Hi,
On Wed, 12 Dec 2018 10:32:24 +
Vasilis Vlachoudis wrote:
(...)
> What it is the advantage of using the
> txt.tk.call('tk::TextInsert', txt._w, event.char)# borrowed from
> text.tcl instead of txt.insert()?
>
actually I do not know if there is any difference, I just supposed there
Hi Vasilis,
On Tue, 11 Dec 2018 13:45:10 +
Vasilis Vlachoudis wrote:
> 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
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 text anchor (dirty
> hack) after looking at the text.tcl as well deleting the selection
Hi,
On Fri, 30 Mar 2018 01:15:59 +0200
wrote:
> When looking around about the question how to "maximize a window" with
> Tkinter there are two approaches.
>
> 1.
> Using wm_state('-zoomed', True).
> Problem: Not working on all platforms. e. g. "-zoomed" is not allowed
> on
Hi,
On Wed, 28 Mar 2018 13:07:54 -0700
Nam Nguyen wrote:
> This happens in Tcl/Tk too. I'll follow up with the Tk folks and come
> back if there's any fix or workaround.
Sure, I never doubted that it has nothing particularly to do with Tkinter.
Regards
Michael
.-.. ..
Hi,
On Wed, 28 Mar 2018 01:18:50 +
Nam Nguyen wrote:
> Is my code out of whack or is it "standard" enough to your seasoned
> eyes? Is there any guess as to a fix to this flickering, be it with my
> code, or Tk itself?
of course you could address the "mouse over
Hi,
On Tue, 27 Mar 2018 13:27:06 -0700
Nam Nguyen via Tkinter-discuss wrote:
> I'm running i3-wm on Debian and this code tends to flicks more when I
> have my mouse over the buttons.
> Nam
I see some flicker here, too. The additional flicker when the mouse
hovers
Hi,
On Mon, 26 Mar 2018 14:41:28 -0700
Nam Nguyen wrote:
> On this note, is setting/getting variables (StringVar, IntVar etc)
> considered GUI action? Why, or why not?
> Thanks!
> Nam
as Brian already pointed out, when setting/getting those varaible's
values Tcl commands
Hi,
On Mon, 26 Mar 2018 12:54:20 -0700
Nam Nguyen via Tkinter-discuss wrote:
> This is where my confusion comes from, actually ;). Python is single
> threaded (from the OS point of view). When I create the TCL
> interpreter, it is also created in the same thread that
Hi,
On Wed, 7 Mar 2018 13:46:40 +
adil gourinda wrote:
> For the last time, what is the parameter's name that accepts option's
> name as a string:
>
> instance.configure(?!?!="option")
>
> I hope I was clear this time.
ok, I got it now :)
As Brian pointed out,
Hi,
On Tue, 6 Mar 2018 09:57:01 -0800
Nam Nguyen wrote:
> Hi,
>
> I'm looking for a fixed ratio 2-pane geometry manager.
>
> I tried PanedWindow but it does not have any option for me to specify
> the ratio of the children.
>
> What I'm looking for is a geometry
Hi,
On Tue, 6 Mar 2018 16:31:23 +
adil gourinda wrote:
> In your example, is "width" a positional argument or a
> positional-keyword argument (and if it is what is the parameter's
> name) ?
Not sure what you mean by that; I would tend to say the parameter's name
Hi,
On Sun, 4 Mar 2018 23:26:56 +
adil gourinda wrote:
> [cid:132f79be-dacf-4e7a-b0b1-94f5411d267b]
> By this picture I tried to explain the translation of "configure"
> command from Tcl to Python configure() method.
>
> For the (1) and (3) cases the python's
Hi,
Vasilis Vlachoudis wrote:
> 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
On Wed, 28 Feb 2018 20:42:51 +0100
Michael Lange <klappn...@web.de> wrote:
(...)
> So at least this primitive seems to work. Maybe you can use this
> technique to achieve what you want.
Or maybe this slightly modified example comes closer to what you are
looking for:
from tkinter im
Hi,
On Wed, 28 Feb 2018 10:59:31 +
Vasilis Vlachoudis wrote:
(...)
> In python3 Pickler requires a byte stream so I replaced all StringIO()
> to BytesIO() and the targets with bytes target1 = b""
> Copying to clipboard work ok (or I believe so)
> Pasting,
Hi,
On Sun, 18 Feb 2018 13:53:27 +0100
wrote:
(...)
> No docu about tix. There is only tcl code. No Python. The pydoc docu
> doesn't help, too. I don't see how to add columns to any of the listbox
> alike widgets or if is is even possible.
in debian there is a demo in the
On Fri, 16 Feb 2018 22:06:58 +0100
wrote:
> Dear Michael,
>
> thank you very much for your valuable reply.
>
> > there does not seem to be a way to
> > make only the "checkbutton" icon sensitive to mouse clicks
>
> The event object have the exact coordinates of the click
Hi,
On Fri, 16 Feb 2018 09:51:33 +
Vasilis Vlachoudis wrote:
> When I run your program
>
> Download$ python codec.py
> utf-8
> Download$ LC_ALL=C python codec.py
> ansi_x3.4-1968
> Download$ LC_ALL=en_US.UTF-8 python codec.py
> utf-8
>
> it seems that python
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
>
> $ locale
> LANG=en_US.UTF-8
> LANGUAGE=en_US.UTF-8
> LC_CTYPE="en_US.UTF-8"
> ...
> LC_ALL=en_US.UTF-8
ok. Don't know if it is
Hi,
On Tue, 13 Feb 2018 22:00:48 +0100
wrote:
> X-Post: https://stackoverflow.com/q/48736168/4865723
>
> I want to know how height (in pixel) is a row in a tkinter.Treeview.
>
> I know how I can manipulate the height (see example below) with the
> styling mechanism. But I
Hi,
On Thu, 15 Feb 2018 10:24:10 +
Vasilis Vlachoudis wrote:
> 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
>
Hi,
On Wed, 14 Feb 2018 01:26:20 +0100
wrote:
> On 2018-02-14 01:14 wrote:
> > But I need images as values. I don't want to use column '#0' for
> > images. Images should appear in the second column for example.
>
> A workaround would be to keep the '#0'
Hi,
On Wed, 14 Feb 2018 01:14:53 +0100
wrote:
> I experimented with tkinter.ttk.Treeview and tkinter.Listbox on Python3.
>
> I need a list widget with multiple columns (this could be Treeview).
> But I need images as values. I don't want to use column '#0' for
> images.
Hi,
On Tue, 13 Feb 2018 17:11:47 -0700
Bob van der Poel wrote:
> Getting closer :)
>
> I asked the question wrongly. I need to determine the number of VISIBLE
> lines in the listbox.
Should be (as used in my previous example)
visible_lines =
On Wed, 14 Feb 2018 00:32:09 +0100
Michael Lange <klappn...@web.de> wrote:
(...)
> I guess
> this simple function is certainly not perfect (but maybe it is already
> good enough):
um, maybe that test() function should be slightly changed, like this
(although yview() does not s
On Tue, 13 Feb 2018 17:19:44 -0600
Bryan Oakley wrote:
(...)
> Another trick would be to get the index of the item at the 0th pixel
> location of the widget (eg: the_listbox.index("@0,0"), and another at
> the pixel location for the height of the widget (ie: by using the
Hi,
On Wed, 14 Feb 2018 03:19:29 +0530
Bhaskar Chaudhary wrote:
> Hi Bob
>
> Are you looking for the number of items in the listbox ?
> If yes this should give you the number of items.
>
> print(len(listbox.get(0, END)))
>
> Given that each item occupies one line in the
Hi,
On Tue, 13 Feb 2018 17:09:30 -0600
Bryan Oakley wrote:
> The actual height of any widget can be obtained with the winfo_height
> method. It returns the value in pixels. To get the height in number of
> lines you'll have to compute the height of your font and do a
Hi,
On Tue, 13 Feb 2018 15:36:55 -0700
Bob van der Poel wrote:
> I know how to find the number of items. Just like you show.
>
> No, this is not the size of the box. I have maybe 2000 entries. I can
> set the current selection, etc with code like this:
>
>
Hi,
On Thu, 1 Feb 2018 23:52:34 -0600
alan moore wrote:
> Thanks. I managed to work it out. I think the problem was twofold:
>
> - I needed to call self.mywidget.focus_force(), because my test root
> wasn't getting focus
> - I needed to call self.root.update() before
Hi,
On Sat, 2 Dec 2017 21:18:14 +
adil gourinda wrote:
>In "tkinter.Chechbutton()" and "tkinter.Radiobutton()" widgets if
> the "tristatevalue" option is set to an empty string the indicator
> appears the first time in the 3rd state in which it is gray, but if
On Wed, 22 Nov 2017 22:19:29 -0600
Bryan Oakley wrote:
> Personally I find the use of tkinter constants a bit silly. I see no
> point in using something like tkinter.END instead of "end". I always
> recommend that people learn to use the string form rather than the
>
Hi,
On Thu, 9 Nov 2017 19:51:16 +
adil gourinda wrote:
> Where the cursors are stored in the file system ?
in Debian the cursors appear to be in /usr/X11R6/lib/X11/icons ,
probably it's the same with Ubuntu.
> And if I want to make
> my own cursors, to which
On Mon, 23 Oct 2017 18:53:24 +0200
Michael Lange <klappn...@web.de> wrote:
> you can use the tkImg library to do that. tkImg's "window" image type
> allows you to create "screenshots" of Tk widgets on the fly.
Oh, and I forgot to mention, with the w
Hi,
On Mon, 23 Oct 2017 12:07:20 +
Vasilis Vlachoudis wrote:
> 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
Hi,
On Sun, 22 Oct 2017 21:11:48 +
adil gourinda wrote:
> With the aim to make translation of tcl/tk's syntax to python's syntax
> more easy I made this flowchart and I ask you to check it.
>
> Thanks for your help
I think the translation of the Tk pathName is
Hi,
On Tue, 12 Sep 2017 11:35:32 +1200
Greg Ewing wrote:
> Austin Redding wrote:
> > Is there any fix to allow for the contents of a directory to be
> > displayed (like 'askopenfilename'), but maintain the functionality of
> > 'askdirectory'?
>
> This seems to be
Hi Austin,
On Mon, 11 Sep 2017 10:44:07 -0500
Austin Redding wrote:
> I'm attempting to use 'askdirectory' in order to populate a widget with
> the relevant files in the user selected directory. However, when using
> 'askdirectory' the user isn't able to see the files
Hi Vasilis,
On Fri, 25 Aug 2017 14:29:34 +
Vasilis Vlachoudis wrote:
> Great thanks.
> I will give it a try.
I finally uploaded the new version 0.3 of TkinterDnD2, this version now
works with both Python2 and Python3. I also added a few new (hopefully
helpful)
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 code and can only handle dnd within one
Tkinter
Hi Emmanuel,
On Tue, 1 Aug 2017 10:36:08 +0100
Emmanuel Adeiza wrote:
> i am currently working on a project(using tkinter) that uses the
> Notebook widget and has an area that serves as an editor but when i
> click on 'new file' it does open it in a new tab but does
Hi,
On Mon, 17 Jul 2017 15:02:04 +0530
niraj pandey wrote:
> Hi ,
>
> I am getting the error while running one of my python script.
>
> import matplotlib.pyplot as plt
> plt.plot([1,2,3,4])
> plt.ylabel('some numbers')
> plt.show()
I don't know about matplotlib,
Hi,
On Mon, 1 May 2017 11:12:43 -0600
Bob Greschke wrote:
> We have a Python/Tkinter inventory program that I wrote that users
> access using X-Windows (Xming, XQuartz, etc.). It can't directly access
> files on the users computer, of course, but cutting and pasting text
>
1 - 100 of 397 matches
Mail list logo