Hi all,
After some research I've decided that my previous question (Confusing
problem between Tkinter.Intvar. ..) was headed in the wrong direction.
Partly because I think I have a greater understanding of what was
happening, and partly because pickling Tkinter widgets is an issue
that seems to have been touched on over the years but never really
acted on.
Postings back to '96 have talked about the need to pickle Tk widgets.
People have asked about it at various points, and no one has ever
really even come up with a workaround (that I could find).
So I am wondering a couple of things: Are there any plans in the
future to alter Tkinter so that it will be Pickle compliant in the
main release? Has anyone ever found a workaround (whether through
altering the main Tkinter.py file or other) that will allow pickling
of Tk widgets.
Thanks,
Marc 1 2321
are not there Pickle versions that allow you to pickle python code, or
simply pickle classes ?
That could be use to pickle the code that create the widget.
Thus the pickling would pickle the creation code and the unpickling would
reobtain it and instanciate the code class.
That is a strategy but I'm not sure if it is what you need...
rodrigob.
"Marc" <mn******@airma il.net> escribió en el mensaje
news:43******** *************** ***@posting.goo gle.com... Hi all,
After some research I've decided that my previous question (Confusing problem between Tkinter.Intvar. ..) was headed in the wrong direction. Partly because I think I have a greater understanding of what was happening, and partly because pickling Tkinter widgets is an issue that seems to have been touched on over the years but never really acted on.
Postings back to '96 have talked about the need to pickle Tk widgets. People have asked about it at various points, and no one has ever really even come up with a workaround (that I could find).
So I am wondering a couple of things: Are there any plans in the future to alter Tkinter so that it will be Pickle compliant in the main release? Has anyone ever found a workaround (whether through altering the main Tkinter.py file or other) that will allow pickling of Tk widgets.
Thanks, Marc This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marcus Schneider |
last post by:
Sorry if this is an extremely stupid question:
I produced some Python modules with TKinter stuff and now I want to
use that from my main program. The windows have wuite some user
interaction. It's easy to bring them to the screen, but how do I make
the communication (i.e. variables) between the main and the modules
happen?
Currently I call a function from the main and pass all variables in
the function call, but with more then 25...
|
by: Dean |
last post by:
Hi All,
I was checking out the demos for tk 8.4.4.0 and noticed that alot of
them (e.g. the scrollbar) have the XP style.
I also noticed that when I use Python 2.3 and a seperately installed
Tk 8.4.4.0 (not the default that comes with the python dist'n) my
Tkinter widgets don't have the XP style. They seem to have the
Windows 2000 style.
|
by: Ben |
last post by:
Hi all!
I learned Python as part of my university coursework... I enjoyed it.
Now I'm just wondering how Python compares with asp, jsp, php and what
not?? I don't have slightest knowledge about these languages... Are
they more advanced than Python? Can Python be integrated with
Dreamweaver?
Hope some of you can get me out of confusion...
|
by: Adonis |
last post by:
I am creating some widgets by inheriting from Tkinter.Frame and populating
the frame with whatever the widget will be then creating certain
attributes/methods to be accessed later. My question is, is this a poper way
to create widgets or should I take a different approach?
Any help is greatly appreciated.
Adonis
|
by: Harlin Seritt |
last post by:
There are certain options for Tkinter widgets that have default values
that I don't much care for (borderwidth, font come to mind) and
continuously change when I'm building interfaces. With a bit of
tweaking I have been able to give the widgets a look that rivals the
best of them. However, I get tired of doing this when I'm writing code
and would like a way that I could universally change them on my system.
I have tried to find where in...
| |
by: John Creighton |
last post by:
What does BCPL stand for is it one language or a family of languages.
My bust guess it the B C Programming Languages. But that is just a
short in the dark. I am also not sure what languages fall into this
family I think sometimes Java is included and maybe other times it is
not?
|
by: jhujsak |
last post by:
Hi,
Can anyone point me to any good examples of how to get started
developing new Tkinter widgets in Tcl/Tk?
I have read a number of the popular books on Python and Tkinter:
- Grayson, J.E., Python and Tkinter Programming, Manning Publications,
2000
- Lutz, M., Programming Python, O'Reilly, 1996.
|
by: sudhakaranr |
last post by:
Hi all,
I have data in MySql, I want to create a front end for the database.....
which one is easy and standard either tkinter or wx python?
We should pick the values from database according to the query which is given.
Please guide me...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |