472,793 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,793 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 1805
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: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.