473,794 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any Pythonic GTK Undo library?

I'm looking for a "pythonic" GTK Undo library/class. It would have a
framework for Undo/Redo, and would provide Undo/Redo for TextView,
Entry, and containers and other classes. In a "batteries included"
fashion, just instantiating a "UndoableTextVi ew" or "UndoableEn try" or
"UndoableContai ner" would provide Undo and Redo in the right-click menu;
simply connecting such an object to an "UndoableUIMana ger" would take
care of the stock items in the menus and toolbar; and there would be a
simple connection to some sort of "UndoableDocume nt" interface or mix-in
for more global sequencing of Undo/Redo. Does something like this exist
for Python or GTK? Googling didn't turn up anything useful.

I'm disappointed that GTK doesn't do this already. Making my own seems
doable, but a fair amount of work. If there isn't some such thing
already, is there interest in using one that I make?

I know about GUndo, which doesn't implement any actual undo operations;
the actual operations would need to be coded for TextView and Entry and
anything else.
_______________ _______________ _______________ _______________ ____________
TonyN.:' *firstname*nlsn ews@georgea*las tname*.com
' <http://www.georgeanels on.com/>
Oct 29 '05 #1
2 2120
On 2005-10-29, Tony Nelson <*firstname*nls news@georgea*la stname*.com> wrote:
I'm looking for a "pythonic" GTK Undo library/class. It would have a


You might ask the authors of Kiwi if they plan to add undo/redo. Or help
them add it if you can.

http://www.async.com.br/projects/kiwi/

It would be great to have this feature in the Gtk C API, though. I do see
some relevant bugzilla entries:

http://bugzilla.gnome.org/show_bug.cgi?id=316551

You might want to make a new request for a general undo/redo interface.

Dave Cook
Oct 29 '05 #2
In article <sl************ *********@local host.localdomai n>,
Dave Cook <da******@nowhe re.net> wrote:
On 2005-10-29, Tony Nelson <*firstname*nls news@georgea*la stname*.com> wrote:
I'm looking for a "pythonic" GTK Undo library/class. It would have a
You might ask the authors of Kiwi if they plan to add undo/redo. Or help
them add it if you can.

http://www.async.com.br/projects/kiwi/


Well, after I implement it myself, if I do, I could give them the code
to port to kiwi.

It would be great to have this feature in the Gtk C API, though. I do see
some relevant bugzilla entries:

http://bugzilla.gnome.org/show_bug.cgi?id=316551

You might want to make a new request for a general undo/redo interface.


Well, after I implement it myself, if I do, I could give them the code
to translate to C.
_______________ _______________ _______________ _______________ ____________
TonyN.:' *firstname*nlsn ews@georgea*las tname*.com
' <http://www.georgeanels on.com/>
Oct 29 '05 #3

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

Similar topics

2
3911
by: zapazap | last post by:
-- Pythonic control of Windows GUI application: tabs and listviews Dear Snake-charming Gurus, I have learned to manipulate some controls ("Button", "ComboBox", etc) through such means as: win32gui.SendMessage(hwnd, win32con.BM_GETCHECK, 0 ,0) win32gui.SendMessage(hwnd, win32con.CB_GETCOUNT, 0 ,0)
1
1273
by: s-galit | last post by:
hi, i have a form with textBox(more then one) and i want the user to be able to do the "undo" operation. how can i do that? thanks
2
2670
by: Lyn | last post by:
Hi, I have a text control on a form which is bound to table field StartDate which is in Date format. When updating the table record via the form, any data entered into the StartDate control is immediately validated. If the data entered is considered valid, focus moves to the next control in the tab sequence. So far, so good. If the data entered in StartDate is considered invalid, an error message is displayed via MsgBox. When OK is...
33
2299
by: Gregory Petrosyan | last post by:
Buenos dias, amigos! I have to write _simple_ gui library, for embedding into game. My first attempt was to use XML: isn't it cute to describe ui in such a way: <window> <title>Hello World!</title> <image text="nice picture here" pos=... src=... /> <text opts=...> (some text here)
0
1870
by: robert | last post by:
As more and more python packages are starting to use the bloomy (Java-ish) 'logging' module in a mood of responsibility and as I am not overly happy with the current "thickener" style of usage, I want to put this comment and a alternative most simple default framework for discussion. Maybe there are more Python users which like to see that imported (managed) logging issue more down-to-earth and flexible ? ... Vinay Sajip wrote: >...
3
3167
by: GoogleEyeJoe | last post by:
Dear ladies and gents, I'm trying to determine whether the .NET Framework implements a means of transactional processing without the need for a database. Essentially, I'd like to enlist light-weight portable business objects within transactions so that that have the ability to roll-back if the client of the object wishes to undo any changes made. For example, if I had a, let's say for sake of simplicity, a person class that had two...
4
1595
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, Does vb2005 have a built-in UnDo feature / object for applications so that I can undo actions like other windows apps? Or do I have to write my own UnDo routine? If vb2005 does have a builtin Undo feature / object / command -- how to implement it? invoke it? If there is no builtin undo feature - is there a recommended way to write an
0
2095
by: wizard of oz | last post by:
Hi all, I'm extending an Abstract Styled Document associated with a JTextPanel to implement a syntax highlighting editor. This is all working just fine - except for undo / redo. The problem is that the undo manager is recording my highlighting that occurs as a result of keystrokes. So whenever the user performs undo, the last operation (a colour highlight operation) is undone. Since I need to refresh the highlighting when the undo is...
1
1652
by: Jeremy | last post by:
I'm working on an application that does some DOM manipulation. I want to add a mechanism for "Undo" so that the user can revert to the previous state after performing a mistaken action. Simple idea, not necessarily simple to implement. My first idea for this is to use closures and an array that tracks the inverse of the user's actions. Here's a simple example in which the user can only remove DOM nodes and then undo the removal...
0
9671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10433
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, 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...
0
10212
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 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...
1
10161
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,...
0
10000
tracyyun
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...
0
9035
agi2029
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...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2919
bsmnconsultancy
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...

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.