This is what I created ScrollableContainers for. Its usage deviates a bit
from standard Tkinter practices in that you add widgets to the frame
attribute of a ScrollableFrameTk instance.
[1]twitter.abaf4b19.webp
[2]ScrollableContainers
pypi.org
For your use case, you coul
On 04/11/2024 15:32, Ulrich Goebel via Python-list wrote:
> I would like to build a class ScrolledListbox,
I assume like the one that used to be available via the Tix module?
It's a great shame that Tix is gone, it had a lot of these useful
widgets, but they were all wrappers around Tcl/Tk's Tix
On 04Nov2024 16:32, Ulrich Goebel wrote:
I would like to build a class ScrolledListbox, which can be packed
somewhere in ttk.Frames. What I did is to build not really a scrolled
Listbox but a Frame containing a Listbox and a Scrollbar:
That's what I would build too.
class FrameScrolledListb
On Wed, 2023-09-13 at 01:33 +0100, MRAB via Python-list wrote:
> On 2023-09-13 00:40, John O'Hagan via Python-list wrote:
> > On Tue, 2023-09-12 at 20:51 +0200, Mirko via Python-list wrote:
> > > Am 12.09.23 um 07:43 schrieb John O'Hagan via Python-list:
> > >
[...]
> >
> >
> > > FWIW, here's
On 2023-09-13 00:40, John O'Hagan via Python-list wrote:
On Tue, 2023-09-12 at 20:51 +0200, Mirko via Python-list wrote:
Am 12.09.23 um 07:43 schrieb John O'Hagan via Python-list:
> My issue is solved, but I'm still curious about what is happening
> here.
MRAB already said it: When you enter t
On Tue, 2023-09-12 at 20:51 +0200, Mirko via Python-list wrote:
> Am 12.09.23 um 07:43 schrieb John O'Hagan via Python-list:
>
> > My issue is solved, but I'm still curious about what is happening
> > here.
>
> MRAB already said it: When you enter the callback function, Tk's
> mainloop waits for
On 12/09/2023 19:51, Mirko via Python-list wrote:
I have also found that after() is a cure for some ills, though I
avoid using it more than I have to because it feels ... a bit
fragile, perhaps.
Yeah. Though for me it was the delay which made it seem fragile. With
a 0 delay, this looks muc
On 2023-09-12 19:51, Mirko via Python-list wrote:
Am 12.09.23 um 07:43 schrieb John O'Hagan via Python-list:
My issue is solved, but I'm still curious about what is happening here.
MRAB already said it: When you enter the callback function, Tk's
mainloop waits for it to return. So what's happ
Am 12.09.23 um 07:43 schrieb John O'Hagan via Python-list:
My issue is solved, but I'm still curious about what is happening here.
MRAB already said it: When you enter the callback function, Tk's
mainloop waits for it to return. So what's happening is:
1. Tk's mainloop pauses
2. temp_unbind
On 2023-09-12 06:43, John O'Hagan via Python-list wrote:
On Mon, 2023-09-11 at 22:25 +0200, Mirko via Python-list wrote:
Am 11.09.23 um 14:30 schrieb John O'Hagan via Python-list:
> I was surprised that the code below prints 'called' three times.
>
>
> from tkinter import *
> from tkinter.ttk
On Mon, 2023-09-11 at 22:25 +0200, Mirko via Python-list wrote:
> Am 11.09.23 um 14:30 schrieb John O'Hagan via Python-list:
> > I was surprised that the code below prints 'called' three times.
> >
> >
> > from tkinter import *
> > from tkinter.ttk import *
> >
> > root=Tk()
> >
> > def callbac
On 11/09/2023 21:25, Mirko via Python-list wrote:
Am 11.09.23 um 14:30 schrieb John O'Hagan via Python-list:
I was surprised that the code below prints 'called' three times.
from tkinter import *
from tkinter.ttk import *
root=Tk()
def callback(*e):
print('called')
tree = Treeview(ro
Am 11.09.23 um 14:30 schrieb John O'Hagan via Python-list:
I was surprised that the code below prints 'called' three times.
from tkinter import *
from tkinter.ttk import *
root=Tk()
def callback(*e):
print('called')
tree = Treeview(root)
tree.pack()
iid = tree.insert('', 0, text='test'
On Sat, 24 Jun 2023 at 15:57, Thomas Passin via Python-list
wrote:
> As a general comment (and I have not done anything tricky or complex
> with Tk), MVC or the other approaches in a similar vein, though good,
> can lead you into more complexity than you need, because of the extra
> abstractions i
-Original Message-
From: Python-list
On Behalf Of Diego Souza via Python-list
Sent: Friday, June 23, 2023 4:14 AM
To: aapost
Cc: python-list
Subject: Re: TKinter in Python - advanced notions
Have you considered improving the architecture itself, not your GUI library
skills?
I recommend
I am not specifically having any problems implementing what I want to make work.
Callbacks etc make it fairly easy to make TKinter react to things without any
specific fancy plan for it.
Add callbacks for real time changes early in any new notion, after it looks
right go to the IO part make i
If you have a problem,. ask a super specific question, here. If I can help, I
will, but TKINTER knowledge is pretty spread around. Many others migth jump in,
too.
Its works, its slightly quirky, has no licencing hangups.
X11 makes fine fine programs !
Keep hacking,Dan
--
https://mail.python.or
> On Behalf Of Diego Souza via Python-list
> Sent: Friday, June 23, 2023 4:14 AM
> To: aapost
> Cc: python-list
> Subject: Re: TKinter in Python - advanced notions
>
> Have you considered improving the architecture itself, not your GUI library
> skills?
>
> I recommend
Have you considered improving the architecture itself, not your GUI library
skills?
I recommend you look at the Model View ViewModel (MVVM) concept and
implement something similar (this is largely used in the Android framework
nowadays). This would separate your program logic from the rendering an
On 6/21/23 09:47, Dan Kolis wrote:
I've write a huge biotech program ( an IDE for synthetic biology ), and am
slowly outgrowing TKINTER.
Has anybody out there merged a little bit of TCL direct calls from Python 3.X
to get more freedom then TKINTER for just some Windows ?
I wish it looked be
On 2023-05-26, Rob Cliffe via Python-list wrote:
> Grant, I may well buy one of the books you suggested.
I haven't had look at either of the newer books, but I got a lot of
good out of the Grayson book (20 years ago). I also had a Tcl/Tk book
that I found useful even when usng tkinter, but it's
Thanks to everyone who replied. All replies were constructive, none
were telling me to stop belly-aching.
I forgot/omitted to state that it was I who wrote the original project
(in a completely different language), making the task of re-writing it
much less formidable. And meaning that I am fa
On 24May2023 02:18, Rob Cliffe wrote:
There doesn't seem to be any decent documentation for it anywhere.
Already mentioned in the replies, I use this:
https://tkdocs.com/shipman/index.html
quite a lot.
--
https://mail.python.org/mailman/listinfo/python-list
Am 24.05.23 um 03:18 schrieb Rob Cliffe:
I have recently started converting a large project to tkinter, starting
with zero knowledge of tkinter. (You are free to think: BAD IDEA. 😁)
Welcome to the awesome world of GUI development.
I was writing a subclass of the Checkbutton class (tkinte
On Wed, 24 May 2023 at 13:11, Rob Cliffe via Python-list
wrote:
>
> I have recently started converting a large project to tkinter, starting
> with zero knowledge of tkinter. (You are free to think: BAD IDEA. 😁)
> I am well aware that adopting a new tool always involves a learning
> curve, and tha
On 5/23/23 21:18, Rob Cliffe wrote:
Comments, anyone?
Better yet (holds breath ...) can anyone point me towards some decent
tkinter documentation?
The variables are slightly more integrated when using tcl/tk directly,
python has to have the object so you can track/use them easier. And the
v
On 2023-05-24, Rob Cliffe via Python-list wrote:
> I have recently started converting a large project to tkinter, starting
> with zero knowledge of tkinter. (You are free to think: BAD IDEA. 😁)
Well, you could be translating them to Tcl/Tk -- so on the scale of
bad ideas, your's barely register
On 5/18/23 21:11, Grant Edwards wrote:
On 2023-05-19, Cameron Simpson wrote:
On 18May2023 12:06, Jack Dangler wrote:
I thought the OP of the tkinter thread currently running may have
needed to install the tkinter package (since I had the same missing
component error message), so I tried to
On 2023-05-19, Cameron Simpson wrote:
> On 18May2023 12:06, Jack Dangler wrote:
>>I thought the OP of the tkinter thread currently running may have
>>needed to install the tkinter package (since I had the same missing
>>component error message), so I tried to install the package on to my
>>Ubu
On 18May2023 12:06, Jack Dangler wrote:
I thought the OP of the tkinter thread currently running may have
needed to install the tkinter package (since I had the same missing
component error message), so I tried to install the package on to my
Ubu laptop -
pip install tkinter
Defaulting to us
On 5/18/23 12:33, Mats Wichmann wrote:
On 5/18/23 10:06, Jack Dangler wrote:
I didn't want to hijack another thread...
I thought the OP of the tkinter thread currently running may have
needed to install the tkinter package (since I had the same missing
component error message), so I tried t
On 5/18/23 10:06, Jack Dangler wrote:
I didn't want to hijack another thread...
I thought the OP of the tkinter thread currently running may have needed
to install the tkinter package (since I had the same missing component
error message), so I tried to install the package on to my Ubu laptop
On Tue, 2023-03-14 at 21:54 +1100, John O'Hagan wrote:
[...]
> Here is minimal code that demonstrates the problem in the subject
> line:
>
> import cv2
> from tkinter import *
>
> images=['a.jpg', 'b.jpg', 'c.jpg'] #change to image paths
>
> cv2.namedWindow('W', cv2.WND_PROP_FULLSCREEN)
> cv2.
On Thu, 2023-03-16 at 04:21 -0400, aapost wrote:
> On 3/15/23 07:37, John O'Hagan wrote:
> > On Tue, 2023-03-14 at 16:22 -0400, aapost wrote:
> > > On 3/14/23 06:54, John O'Hagan wrote:
> >
> > [...]
> > > >
>
>
> Read an alternative description of the waitKey behavior
>
> >For example, waitK
On 3/15/23 07:37, John O'Hagan wrote:
On Tue, 2023-03-14 at 16:22 -0400, aapost wrote:
On 3/14/23 06:54, John O'Hagan wrote:
[...]
Read an alternative description of the waitKey behavior
>For example, waitKey(0) will display the window infinitely until any
keypress (it is suitable for i
On 3/15/23 07:37, John O'Hagan wrote:
On Tue, 2023-03-14 at 16:22 -0400, aapost wrote:
On 3/14/23 06:54, John O'Hagan wrote:
Doing a quick read, tkinter is not threadsafe, so diving in to a
threading solution is probably not the best approach.
But just to throw out another possible soluti
On 3/15/23 07:37, John O'Hagan wrote:
On Tue, 2023-03-14 at 16:22 -0400, aapost wrote:
On 3/14/23 06:54, John O'Hagan wrote:
It works up to a point - I can cycle through the images by clicking
the
button - but if I mouse-click on the displayed image (e.g. to use
the
zooming and panning features
On Tue, 2023-03-14 at 16:22 -0400, aapost wrote:
> On 3/14/23 06:54, John O'Hagan wrote:
[...]
> >
> > Here is minimal code that demonstrates the problem in the subject
> > line:
> >
> > import cv2
> > from tkinter import *
> >
> > images=['a.jpg', 'b.jpg', 'c.jpg'] #change to image paths
> >
On 3/14/23 06:54, John O'Hagan wrote:
Hi list
I'm trying to use cv2 to display images created as numpy arrays, from
within a tkinter app (which does other things with the arrays before
they are displayed as images). The arrays are colour-coded
visualisations of genomes and can be over a billion
On Tue, 2023-03-14 at 13:52 +, Weatherby,Gerard wrote:
> Assuming you’re using opencv-python, I’d post query at
> https://github.com/opencv/opencv-python/issues.
Thanks Gerard
I'm using the python3-opencv package from Debian testing. Is that
github the appropriate place for this query?
Than
On Tue, 2023-03-14 at 08:07 -0400, Thomas Passin wrote:
> On 3/14/2023 6:54 AM, John O'Hagan wrote:
> > Hi list
> >
> > I'm trying to use cv2 to display images created as numpy arrays,
> > from
> > within a tkinter app (which does other things with the arrays
> > before
> > they are displayed as i
Assuming you’re using opencv-python, I’d post query at
https://github.com/opencv/opencv-python/issues.
From: Python-list on
behalf of John O'Hagan
Date: Tuesday, March 14, 2023 at 6:56 AM
To: Python list
Subject: Tkinter and cv2: "not responding" popup when imshow launched from tk
app
*** At
On 3/14/2023 6:54 AM, John O'Hagan wrote:
Hi list
I'm trying to use cv2 to display images created as numpy arrays, from
within a tkinter app (which does other things with the arrays before
they are displayed as images). The arrays are colour-coded
visualisations of genomes and can be over a bill
Il 12/02/23 12:10, John O'Hagan ha scritto:
> My goal was to be able to change the colour of an individual item
> regardless of whether it is selected or not. To do that, it is
> necessary to be able to change the colour of an individual selected
> item, without changing the selection or changing
On Sun, 2023-02-12 at 08:59 -0500, Thomas Passin wrote:
[...]
> On 2/12/2023 6:10 AM, John O'Hagan wrote:
[...]
> >
> > My goal was to be able to change the colour of an individual item
> > regardless of whether it is selected or not. To do that, it is
> > necessary to be able to change the co
On 2/12/2023 6:10 AM, John O'Hagan wrote:
On Mon, 2023-02-06 at 10:19 -0800, stefalem wrote:
Il giorno sabato 4 febbraio 2023 alle 11:43:29 UTC+1 John O'Hagan ha
scritto:
...
Is there another way to do what I want?
from tkinter import *
from tkinter.ttk import *
root = Tk()
t = Treeview(roo
On Mon, 2023-02-06 at 10:19 -0800, stefalem wrote:
> Il giorno sabato 4 febbraio 2023 alle 11:43:29 UTC+1 John O'Hagan ha
> scritto:
> ...
>
> > Is there another way to do what I want?
>
> from tkinter import *
> from tkinter.ttk import *
>
> root = Tk()
> t = Treeview(root)
>
> t.insert('', 0
I apologize for the 3 messages sent, I could not access the usual news
server and with Google Groups I messed up :)
--
https://mail.python.org/mailman/listinfo/python-list
> Is there another way to do what I want?
try this:
from tkinter import *
from tkinter.ttk import *
root = Tk()
t = Treeview(root)
t.insert('', 0, iid='item1', text='item1')
t.insert('', 1, text='item2')
t.tag_configure('flashtag', background='red')
t.pack()
def flash():
tags = t.item('ite
Il giorno sabato 4 febbraio 2023 alle 11:43:29 UTC+1 John O'Hagan ha scritto:
...
> Is there another way to do what I want?
from tkinter import *
from tkinter.ttk import *
root = Tk()
t = Treeview(root)
t.insert('', 0, iid='item1', text='item1')
t.insert('', 1, text='item2')
t.tag_configure('f
I haven't worked specifically with a Treeview, but I think you need to
detect the onClick event (or an onSelect event if there is one) and have
that trigger the flashing. Otherwise the selection probably overwrites
styling that you added. That's what I do for classic Tk buttons to make
them fl
On 2023-01-11 00:13, Cameron Simpson wrote:
On 10Jan2023 18:32, MRAB wrote:
I don't like how you're passing Thread...start as an argument. IMHO, it
would be better/cleaner to pass a plain function, even if the only
thing that function does is to start the thread.
Yes, and this is likely the
On 10Jan2023 18:32, MRAB wrote:
I don't like how you're passing Thread...start as an argument. IMHO, it
would be better/cleaner to pass a plain function, even if the only
thing that function does is to start the thread.
Yes, and this is likely the thing causing the cited exception "threads
c
On 2023-01-10 14:57, Abhay Singh wrote:
Here is the entire code snippet of the same.
Please help
def change_flag(top_frame, bottom_frame, button1, button2, button3, button4,
controller): global counter, canvas, my_image, chosen, flag, directory
canvas.delete('all') button5['state'] = DISABLED
On 2022-08-01 at 18:53:47 +0100,
Matthew Barnett wrote:
> On 01/08/2022 13:17, Daniel Lee wrote:
> > Hello, I my code with tkinter was working before, and now, it has many
> > errors in it. I’m not sure what has happened. The results after running are
> > below:
> >
> > "D:\Python Projects\tes
On 01/08/2022 13:17, Daniel Lee wrote:
Hello, I my code with tkinter was working before, and now, it has many errors
in it. I’m not sure what has happened. The results after running are below:
"D:\Python Projects\tes\venv\Scripts\python.exe" "D:/Python
Projects/tes/main.py"
Traceback (most rec
On Tue, 21 Jun 2022 at 09:22, Wolfgang Grafen wrote:
> I am an experienced Python user and struggle with following statement:
>
> >>> from tklib import *
> Traceback (most recent call last):
> File "", line 1, in
> ModuleNotFoundError: No module named 'tklib'
[...]
> I did not find a python mo
On Mon, 20 Jun 2022 15:43:26 -0700 (PDT), Wolfgang Grafen
declaimed the following:
>
>There are numerous examples using "from tklib import *" so I assume it works
>for most. In the tk-tutorial below tklib is used without special explanation,
>so I assume it should be installed by default with e
On 2022-06-20 23:43, Wolfgang Grafen wrote:
Hello all,
I am an experienced Python user and struggle with following statement:
from tklib import *
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'tklib'
I tried to import tklib as shown above on fol
On Sat, 18 Jun 2022, Peter J. Holzer wrote:
There is a comma (U+002C) here ...
And a dot (U+002E) here.
That was a typo when I wrote the message. And I usually add a space after
commas and surrounding equal signs, all for easier reading.
Thank you,
Rich
--
https://mail.python.org/mailman/lis
On 2022-06-17 19:47:38 -0700, Rich Shepard wrote:
> On Fri, 17 Jun 2022, Dennis Lee Bieber wrote:
>
> > > ContactNameInput, 'lname',
> > > ContactNameInput, 'fname',
>
> This works if a tk.labelframe is where the widget is placed. In my case, as
> MRAB taught me, the prope
On Fri, 17 Jun 2022, Dennis Lee Bieber wrote:
ContactNameInput, 'lname',
ContactNameInput, 'fname',
This works if a tk.labelframe is where the widget is placed. In my case, as
MRAB taught me, the proper syntax is
self,'lname'...
self.'fname'...
Thanks,
On Fri, 17 Jun 2022 09:19:59 -0700 (PDT), Rich Shepard
declaimed the following:
>I'm not seeing the error source in a small tkinter module I'm testing.
>
>The module code:
>---
>import tkinter as tk
>from tkinter import ttk
>
>import common_classes as cc
>
>class ConactNameInput(tk.Frame)
On Fri, 17 Jun 2022, MRAB wrote:
This:
self.inputs['Last name'] = cc.LabelInput(
ContactNameInput, 'lname',
input_class = ttk.Entry,
input_var = tk.StringVar()
)
should be this:
self.inputs['Last name'] = cc.LabelInput(
On 2022-06-17 18:06, Rich Shepard wrote:
On Fri, 17 Jun 2022, MRAB wrote:
You haven't shown the code for common_classes.LabelInput, but I'm guessing
that the first argument should be the parent.
[snip]
You're passing in the _class_ ConactNameInput, but I'm guessing that it
should be an _ins
On Fri, 17 Jun 2022, MRAB wrote:
You haven't shown the code for common_classes.LabelInput, but I'm guessing
that the first argument should be the parent.
Here's the LabelInput class:
class LabelInput(tk.Frame):
""" A widget containing a label and input together. """
def __init__(self,
On 2022-06-17 17:19, Rich Shepard wrote:
I'm not seeing the error source in a small tkinter module I'm testing.
The module code:
---
import tkinter as tk
from tkinter import ttk
import common_classes as cc
class ConactNameInput(tk.Frame):
def __init__(self, parent, *args, **kwarg
On Tue, 31 May 2022, MRAB wrote:
There's an example of how to show a tooltip here:
https://stackoverflow.com/questions/3221956/how-do-i-display-tooltips-in-tkinter
MRAB,
A tooltip would work. I downloaded the first example and assume that it will
display a treeview cell when the cursor hovers
On Tue, 31 May 2022, MRAB wrote:
The note could be displayed partially in the column itself, with the full
text displayed either in read-only textbox nearby when the row is selected
(and it's the only selected row), or in the form of a tooltip when you
hover over it.
There's an example of how t
On 2022-05-31 21:29, Rich Shepard wrote:
On Tue, 31 May 2022, MRAB wrote:
Have a look at the tkinter.ttk.Treeview widget; it can be formatted as a
tree hierarchy, its name suggests, or a multi-column tables, but it
doesn't support multi-line text though, as far as I know.
MRAB,
Thank you, I
On Tue, 31 May 2022, MRAB wrote:
Have a look at the tkinter.ttk.Treeview widget; it can be formatted as a
tree hierarchy, its name suggests, or a multi-column tables, but it
doesn't support multi-line text though, as far as I know.
MRAB,
Thank you, I will.
Each time I add a row to the contac
On 2022-05-31 19:47, Rich Shepard wrote:
My web searches haven't helped me learn how to design a read-only scrollable
table widget displaying rows retrieved from postgres database tables. This
is for my business development application.
I'm writing a view module that displays my contact history
On 25/10/2021 02:57, Stefan Ram wrote:
GetKeyState still returns that the tab key
is pressed after the tab key already has been released.
Well, how then am I going to make my slide show stop the
moment the key is being released?
Does tkinter allow you to trap KeyUp (and KeyDown) ev
On 10/24/21, Stefan Ram wrote:
> r...@zedat.fu-berlin.de (Stefan Ram) writes:
>>tab_down_hllDll.GetKeyState(tab_down_VK_TAB) & 0b1000
>
> In the meantime, I read about "GetAsyncKeyState". I thought that
> this would solve my problem, but no.
Odd. It works for me in the classic con
On 20Oct2021 20:18, Stefan Ram wrote:
>r...@zedat.fu-berlin.de (Stefan Ram) writes:
>>I want to diplay images fast in a slideshow (i.e., 10 images
>
> (There's a problem with my [S] key.)
>
> It seems that update_idletasks() solved my problem!
Yes. That causes the event loop to resume, render,
On 21/08/2021 19:37, Tony Genter wrote:
>Tkinter stopped working overnight from 8/20/2021 to 8/21/2021. Last night
>I was working on tutorials to work on a GUI and this morning every file
>that uses tkinter is broken stating that no module `tkinter' exists.
Are you sure you were runni
On Wed, 14 Jul 2021, Betty Hollinshead wrote:
So.I've had success with GTK3 (not Tkinter).
Betty,
There are multiple widget sets and all will work better with some
application types than others.
In the past I used wxPython but switched to Tkinter. Tried PyQt5 (doesn't do
complex, multi-t
On 7/13/2021 4:24 PM, Rich Shepard wrote:
I'm writing a couple of database applications that use tkinter, and not a
web browser, for the UI and I'm still trying to determine the optimal
way to
do this.
Individual tk and ttk widgets (LineEntry, Combobox, etc.) work for adding
Do you mean Entr
On Tuesday, 13 July 2021 at 21:35:01 UTC+1, Rich Shepard wrote:
> I'm writing a couple of database applications that use tkinter, and not a
> web browser, for the UI and I'm still trying to determine the optimal way to
> do this.
>
> Individual tk and ttk widgets (LineEntry, Combobox, etc.) wor
On 13/07/2021 21:24, Rich Shepard wrote:
> What have other developers used for the UI on a stand-alone database
> application not using a web browser?
Mostly I just use a scrolledlistbox and a set of functions for
formatting the data into columns for display. The big snag is
you can't do spreads
Am 19.06.21 um 08:48 schrieb Jach Feng:
Christian Gollwitzer 在 2021年6月19日 星期六下午1:54:46 [UTC+8] 的信中寫道:
I guess you wanted to post another question? Then please open a new
thread. In addition, the question is unclear, you just posted a
transcript of three lines of Python.
I posted to point out
Am 19.06.21 um 07:16 schrieb Jach Feng:
Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道:
Am 19.06.21 um 05:59 schrieb Jach Feng:
import tkinter as Tk
Tk
from tkinter import *
Tk
tkinter
Traceback (most recent call last):
File "", line 1, in
NameError: name 'tkinter' is not
On 6/18/2021 2:28 AM, Liya Ann Sunny wrote:
I am using Colab. How could solve this problem.
import tkinter as Tk
If you do this, import 'as tk'.
from tkinter import *
The second import overwrites the first since it imports tkinter.Tk as
'Tk'. Don't try to do both.
import sys
import os
Am 19.06.21 um 05:59 schrieb Jach Feng:
import tkinter as Tk
Tk
from tkinter import *
Tk
tkinter
Traceback (most recent call last):
File "", line 1, in
NameError: name 'tkinter' is not defined
What's the point? That has no relation to the question.
"import A as B" does not define
Christian Gollwitzer 在 2021年6月19日 星期六下午1:54:46 [UTC+8] 的信中寫道:
> Am 19.06.21 um 07:16 schrieb Jach Feng:
> > Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道:
> >> Am 19.06.21 um 05:59 schrieb Jach Feng:
> >> import tkinter as Tk
> >> Tk
> >>> >>> 'C:\\Users\\jfong\\AppData
Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道:
> Am 19.06.21 um 05:59 schrieb Jach Feng:
> import tkinter as Tk
> Tk
> > > 'C:\\Users\\jfong\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\tkinter\\__init__.py'>
> >
> from tkinter import *
> Tk
> >
liyaanns...@gmail.com 在 2021年6月18日 星期五下午2:28:35 [UTC+8] 的信中寫道:
> I am using Colab. How could solve this problem.
> import tkinter as Tk
> from tkinter import *
> import sys
> import os
> #create main window
> master = Tk()
> master.title("tester")
> master.geometry("300x100")
>
>
> #make
Am 18.06.21 um 08:28 schrieb Liya Ann Sunny:
I am using Colab. How could solve this problem.
TclError: couldn't connect to display ":0.0"
You're either not running an X server, or having problems to connect to it.
Are you sure that Google Colab supports X11 at all? This link doesn't
seem to
On Thu, 17 Jun 2021, Dennis Lee Bieber wrote:
FreePascal/Lazarus is supposed to be similar to Delphi, and does
have Linux installs -- but I don't know what it provides for database
linkages. I do have it installed on my Windows box (the Linux install is
HUGE; takes up over 1/4 of the spa
On Thu, 17 Jun 2021, Alan Gauld via Python-list wrote:
Sounds like a job for a database view. Can you modify the database schema?
Could you create a view - even a temporary one just while your app is
running?
Alan,
Yes, created views work well with postgres. Building one for complex,
multitab
On Thu, 17 Jun 2021, Dennis Lee Bieber wrote:
My naive idea is to use two queries, one selects * from the company table
ordered by nunber, the other by name. The UI offers two radiobuttons when
viewing the results, one for each sort column.
Presuming all the data fits in memory, it may
On 17/06/2021 00:15, Rich Shepard wrote:
> When I view my contacts table it needs to includes attributes from the
> company, people, and contacts tables so I can view all prior contacts with
> that person.
Sounds like a job for a database view.
Can you modify the database schema? Could you create
On Wed, 16 Jun 2021, Alan Gauld via Python-list wrote:
But there is nothing I know of for Tkinter that provides views of database
tables in the way that Delphi or VB or C# do, for example.
Alan,
These are all Microsoft tools. I run linux only.
You have to extract the data using SQL and popu
On Thu, 17 Jun 2021, dn via Python-list wrote:
Use the DBMS by retrieving the data in the desired sequence?
dn,
Yep. That's what I thought would be the best approach.
Thanks,
Rich
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 16 Jun 2021, Dennis Lee Bieber wrote:
Scroll further down to "bindings"... rc_insert_row -- a
menu binding
Dennis,
Yes, I saw that one, too.
As for sorting, I don't see anything that allows one to add custom
events to the bindings... best I can come up with is that
On 16/06/2021 21:45, Rich Shepard wrote:
> The two applications I'm building are both database applications. If
> tksheet() is not the most appropriate widget to display database tables what
> alternative would be better?
I've not used tksheet but it sounds like it might be worth investigating.
On 17/06/2021 08.45, Rich Shepard wrote:
> On Wed, 16 Jun 2021, Terry Reedy wrote:
>
>> Somewhat sparse doc at
>> https://github.com/ragardner/tksheet/blob/master/DOCUMENTATION.md#5-modifying-table-data
>>
>> insert_row()
>
> Terry,
>
> I'm reading this now and saw that.
>
>> and change the col
On Wed, 16 Jun 2021, Terry Reedy wrote:
Somewhat sparse doc at
https://github.com/ragardner/tksheet/blob/master/DOCUMENTATION.md#5-modifying-table-data
insert_row()
Terry,
I'm reading this now and saw that.
and change the column used for sorting (e.g.,
sorting by company number or company
On 6/16/2021 12:31 PM, Rich Shepard wrote:
Reading the doc for tksheet tells me that it allows me to modify cells (or
entire rows) as well as display them. What I don't see is whether I can add
a new row using tksheet
Somewhat sparse doc at
https://github.com/ragardner/tksheet/blob/master/DOCUM
On Wed, 24 Feb 2021 22:35:32 +1100
John O'Hagan wrote:
> Hi list
>
> I have a 3.9 tkinter interface that displays data from an arbitrary
> number of threads, each of which runs for an arbitrary period of time.
> A frame opens in the root window when each thread starts and closes
> when it stops.
1 - 100 of 1995 matches
Mail list logo