git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitk: put all startup code into a proc to enable re-sourcing

From
Pat Thoyts <patthoyts@users.sourceforge.net>
Date
Mar 23, 2009, 23:40 UTC
Message-ID
<49C81DF1.6010208@users.sourceforge.net>
In-Reply-To
<18887.24242.451428.980685@cargo.ozlabs.ibm.com>
Paul Mackerras wrote:
Show 15 quoted lines
> Pat Thoyts writes:
> 
>>     All the startup code is moved into a procedure. All the variables
>>     get initialized using 'variable' to ensure they are in the global
>>     namespace.  This makes it possible to re-source the script during
>>     development from the Tk console or a tkcon interactive session.
>>
>> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
> 
> The patch does other stuff as well, that should be mentioned in the
> patch description or split out into a separate patch - namely it
> changes error_popup on win32 (why?) and it introduces some ttk widget
> use into confirm_popup.
> 
> Paul.

The changes to error_popup -- its fugly on windows. We have tk_messageBox for showing message boxes and where available this function will use a native messagebox which will look normal for the platform.

However, these should be in the theme patch and not in a code refactoring patch. So I apologize and will redo more carefully.

Pat Thoyts
Previous: Paul Mackerras
Message 3 of 3 in “gitk: put all startup code into a proc to enable re-sourcing”
  1. gitk: put all startup code into a proc to enable re-sourcingPat Thoyts, Feb 28, 2009
  2. Paul MackerrasMar 23, 2009
  3. Pat ThoytsMar 23, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.