473,387 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

configuring temporary entry widget of TableList Cell using Python

Hi,

I am using Tkinter & the Kevin Walzer's TableList Wrapper for python
implemented GUI:

http://tkinter.unpythonic.net/wiki/TableListWrapper

The TableList has been extremely useful in allowing me to create my
GUI for my engineering requirements, but I have hit a brick wall and
need some assistance.

"I am unable to configure the Temporary Embedded ComboBox List when
the specific TableList cell is selected for editing"

I have a registered the Bwidget Combobox widget so I can use this as
an alternative temporary Entry Widget ( depending on the specific cell
usage) thanks to some assistance from Kevin Walzer ( Many thanks ). I
configure the particular cell's edit window (-editwindow ) for
ComboBox which is working successfully.
The problem I have is I wish to change the "-values" of the Temporary
Combobox Widget i.e. a List that I can specify.
When my "-editstartcommand" is called I firstly get the pathname of
the Temporary Embedded Widget using,
TEW = editwinpath()
I am then assuming (although I must be wrong!) that I can then do:

TEW.configure( values=("my","list","of","Strings"))

However, this leads to the exception error - TEW does not contain
such an attribute "configure".
My reference for this procedure is (http://objectmix.com/tcl/377931-
communicating-tablelist-embedded-widgets.html but also available from
tcl.tk tablelist coding examples) :

proc editStartCmd {tbl row col text} {
set w [$tbl editwinpath]

switch [$tbl columncget $col -name] {
currency {
#
# Populate the ComboBox and make it non-editable
#
$w configure -values {Dollar Euro Yen ...} -editable no
}

.. . .
}

return $text
}

It is this procedure I am trying to replicate in Python. Is it
possible to guide help tell me the right approach here. Of course I
can submit my code to help ( if this is useful ) but the problem I
think clear to see from these summary details.
Please take it easy on me, I am a HW engineer by trade and am slowly
(but surely) gaining more knowledge & experience in the world of
Python (and of course Tkinter)!

B.Regards,

Lee Walczak
Aug 18 '08 #1
2 1831
le*********@gmail.com wrote:
It is this procedure I am trying to replicate in Python. Is it
possible to guide help tell me the right approach here. Of course I
can submit my code to help ( if this is useful ) but the problem I
think clear to see from these summary details.
I'm afraid this is a bit TL;DR for me right now, but you might find more
patient contributors over at the Tkinter mailing list:

http://mail.python.org/mailman/listinfo/tkinter-discuss

</F>

Aug 18 '08 #2
On Aug 18, 7:01 pm, Fredrik Lundh <fred...@pythonware.comwrote:
lee.walc...@gmail.com wrote:
It is this procedure I am trying to replicate in Python. Is it
possible to guide help tell me the right approach here. Of course I
can submit my code to help ( if this is useful ) but the problem I
think clear to see from these summary details.

I'm afraid this is a bit TL;DR for me right now, but you might find more
patient contributors over at the Tkinter mailing list:

http://mail.python.org/mailman/listinfo/tkinter-discuss

</F>
Thanks for the details fredrik, will try here.

Lee
Aug 18 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: bigbinc | last post by:
I have used the 'entry' tk widget to get text values, I am now using 'Text' but I cant seem to use 'get' method. The TK docs say use get(index1, index2), I tried numbers and get an error ...
1
by: phil | last post by:
In a Tkinter entry field (or Pmw entry) how could I eat charactres? Say a certain char is keyed in. Say & I notice in the event handler for <key>. I don't want any more charactres to display or...
1
by: malv | last post by:
Wanting to explore tk under python, I must say that it seems to be very difficult to find the required information in one single place. I would like to give tk a try but as I need as a test...
2
by: Dustan | last post by:
How do I limit what the user can enter in an Entry Widget? I know I can set it to display '*' to hide a password, but what I want to do is limit the contents to numeric characters. What is the...
1
by: Arne Meissner | last post by:
Hello everybody! I have downloaded the Tablelist 4.3 from http://www.nemethi.de/. Now I want to install it on my system Win XP. From the distribution I have got the following information:...
0
by: Arne Meissner | last post by:
Hello! I am using under Python the tablelist 4.3 from http://www.nemethi.de/. Now I want to do bind the following: When you click on the column header, the selected column should sort. How...
4
by: Dustan | last post by:
Back in this post, I attempted to make a label look like a button:...
3
Elias Alhanatis
by: Elias Alhanatis | last post by:
Hello to everybody!! I am running Python 2.5.1 on Windows Vista and i have a problem with the "Entry" widget of Tkinter. Take a look at this code: from Tkinter import * def fetch(): ...
2
by: Atul | last post by:
Hi, The snippet : entryFontDescr = Entry() print self.entryFontDescr On Windows XP it displays {MS Sans Serif} 8
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.