23
23
#include " _tkmini.h"
24
24
#include " py_converters.h"
25
25
26
- // Global vars for Tcl / Tk functions. We load these symbols from the tkinter
27
- // extension module or loaded Tcl / Tk libraries at run-time.
26
+ // Global vars for Tk functions. We load these symbols from the tkinter
27
+ // extension module or loaded Tk libraries at run-time.
28
28
static Tk_FindPhoto_t TK_FIND_PHOTO;
29
29
static Tk_PhotoPutBlock_NoComposite_t TK_PHOTO_PUT_BLOCK_NO_COMPOSITE;
30
30
@@ -108,7 +108,7 @@ static PyMethodDef functions[] = {
108
108
{ NULL , NULL } /* sentinel */
109
109
};
110
110
111
- // Functions to fill global TCL / Tk function pointers by dynamic loading
111
+ // Functions to fill global Tk function pointers by dynamic loading
112
112
113
113
template <class T >
114
114
int load_tk (T lib)
@@ -125,23 +125,22 @@ int load_tk(T lib)
125
125
#ifdef _WIN32
126
126
127
127
/*
128
- * On Windows, we can't load the tkinter module to get the TCL or Tk symbols,
129
- * because Windows does not load symbols into the library name-space of
130
- * importing modules. So, knowing that tkinter has already been imported by
131
- * Python, we scan all modules in the running process for the TCL and Tk
132
- * function names.
128
+ * On Windows, we can't load the tkinter module to get the Tk symbols, because
129
+ * Windows does not load symbols into the library name-space of importing
130
+ * modules. So, knowing that tkinter has already been imported by Python, we
131
+ * scan all modules in the running process for the Tk function names.
133
132
*/
134
133
135
134
void load_tkinter_funcs (void )
136
135
{
137
- // Load TCL and Tk functions by searching all modules in current process.
136
+ // Load Tk functions by searching all modules in current process.
138
137
HMODULE hMods[1024 ];
139
138
HANDLE hProcess;
140
139
DWORD cbNeeded;
141
140
unsigned int i;
142
141
// Returns pseudo-handle that does not need to be closed
143
142
hProcess = GetCurrentProcess ();
144
- // Iterate through modules in this process looking for TCL / Tk names
143
+ // Iterate through modules in this process looking for Tk names.
145
144
if (EnumProcessModules (hProcess, hMods, sizeof (hMods), &cbNeeded)) {
146
145
for (i = 0 ; i < (cbNeeded / sizeof (HMODULE)); i++) {
147
146
if (load_tk (hMods[i])) {
@@ -154,9 +153,9 @@ void load_tkinter_funcs(void)
154
153
#else // not Windows
155
154
156
155
/*
157
- * On Unix, we can get the TCL and Tk symbols from the tkinter module, because
158
- * tkinter uses these symbols, and the symbols are therefore visible in the
159
- * tkinter dynamic library (module).
156
+ * On Unix, we can get the Tk symbols from the tkinter module, because tkinter
157
+ * uses these symbols, and the symbols are therefore visible in the tkinter
158
+ * dynamic library (module).
160
159
*/
161
160
162
161
void load_tkinter_funcs (void )
0 commit comments