Opps: found a few errors in that last ScrolledListbox class, try this
one...
import Tkinter as tk
from Tkconstants import *
class ScrolledList(tk.Listbox):
def __init__(self, master, **kw):
self.frame = tk.Frame(master)
self.frame.rowconfigure(0, weight=1)
self.frame
* Alf P. Steinbach:
In case Someone Else(TM) may need this.
This code is just how it currently looks, what I needed for my code, so
it's not a full-fledged or even tested class.
But it works.
That code evolved a little to cover more Tk listbox quirks (thanks to Ratingrick
for the "actives
On Mar 1, 6:19 am, "Alf P. Steinbach" wrote:
> > kw.setdefault('activestyle', 'none')
>
> Hm, let me steal this line... Thanks!
Yes! the default activestyle is quite annoying!
--
http://mail.python.org/mailman/listinfo/python-list
* rantingrick:
kw.setdefault('activestyle', 'none')
Hm, let me steal this line... Thanks!
Cheers,
- Alf
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 28, 9:57 pm, "Alf P. Steinbach" wrote:
> * rantingrick:
I just hate overriding all the paths to each listbox method. How about
just overideing the Listboxe's geomerty methods once an your done?
#-- start script --#
import Tkinter as tk
from Tkconstants import *
import tkMessageBox as MB
* rantingrick:
On Feb 28, 6:30 pm, "Alf P. Steinbach" wrote:
In case Someone Else(TM) may need this.
This code is just how it currently looks, what I needed for my code, so it's not
a full-fledged or even tested class.
Thanks for sharing Alf,
Thats works fine "as-is" but what about inheritin
On Feb 28, 6:30 pm, "Alf P. Steinbach" wrote:
> In case Someone Else(TM) may need this.
>
> This code is just how it currently looks, what I needed for my code, so it's
> not
> a full-fledged or even tested class.
Thanks for sharing Alf,
Thats works fine "as-is" but what about inheriting from "t
In case Someone Else(TM) may need this.
This code is just how it currently looks, what I needed for my code, so it's not
a full-fledged or even tested class.
But it works.
import tkinter as t
import tkinter.simpledialog
import tkinter.messagebox
t.askstring = tkinter.simpledialog.askstr