File: changes.html

package info (click to toggle)
python-pmw 0.6.2-0.1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,652 kB
  • ctags: 2,716
  • sloc: python: 10,720; makefile: 44; sh: 24
file content (660 lines) | stat: -rw-r--r-- 19,661 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660

    <html>
    <head>
    <title>Changes to Pmw</title>
    </head>

    <body bgcolor="#ffffff" text="#000000" link="#0000ee"
	vlink="551a8b" alink="ff0000">

    <center><P ALIGN="CENTER">
    <IMG SRC = transdove.gif ALT = "" WIDTH=70 HEIGHT=75>
    <IMG SRC = transdove.gif ALT = "" WIDTH=70 HEIGHT=75>
    <IMG SRC = transdove.gif ALT = "" WIDTH=70 HEIGHT=75>
    </p></center>

    <h1 ALIGN="CENTER">Changes to Pmw</h1>
    <p>
    
<p>
  6 January 1997</p>

<ul><li><p>Release of version 0.1</p>

</ul>
<p>  14 February 1997</p>

<ul><li><p>Fixed bug in Counter demo for the Macintosh - the maximum size of an
    integer is smaller than the value returned by time.time().</p>


<li><p>Fixed bug in Grid demo for Tk 4.2 - grid_bbox returns garbage if it is
    called without update_idletasks.  Also, grid_bbox can only have two
    arguments in Tk 4.1.</p>


<li><p>Modified ScrolledText demo so that the text widget contains enough text
    to require a vertical scrollbar.</p>


<li><p>Changes to PmwBase:</p>
<ul><li><p>Prefixed the name of several private variables with a double underscore.</p>


<li><p>Added symbolic constants for the indexes into an optionInfo list.</p>


<li><p>Changed names of several methods and variables to be more descriptive.</p>


<li><p>Removed options() method.</p>


<li><p>Simplified configuration option data structures.  Modified option
      handling code so that default options are set correctly.  If an
      option is created before initialise() is called then initialise()
      checks if the option is set by the keyword arguments to
      initialise().  If not, then it is given the value found in the
      Tk option database, if a value exists, or the default value.  If an
      option is created after initialise() is called, then it is given the
      value found in the Tk option database, if a value exists, or the
      default value.</p>

</ul>


<li><p>Replaced usage of self._hull in megawidgets by interior() method.</p>


<li><p>Added autoclear option to ComboBox.</p>


<li><p>Fixed bug in ComboBox - fast clicking on the arrow button could result
    in an attempt to grab a window that was not yet visible.</p>


<li><p>Added "sys.exc_traceback = None" to the except clauses of all try
    statements so that references to objects in the stack trace would not
    be left.</p>


<li><p>Added takefocus option to PushButton.</p>


<li><p>Modified the getcurselection() method of ScrolledListBox so that it
    returns a string if the selection mode is <strong>'single'</strong> or <strong>'browse'</strong>, rather
    than a tuple with one element.  This also affects methods forwarded and
    derived from ScrolledListBox.</p>


<li><p>Modified ScrolledListBox so that it avoids unnecessary updates by
    using idle timer.</p>


<li><p>Modified ScrolledText to use grid instead of pack.</p>


<li><p>Added shutdown() function to Tk module to clean up all references to
    the Tcl interpreter and then delete it.</p>


<li><p>Fixed bug Tk module for the Macintosh - update() was being called in
    initialise() before the Tcl interpreter was created.</p>

</ul>
<p>  14 February 1997</p>

<ul><li><p>Version 0.1.1 completed and released internally.</p>

</ul>
<p>  6 March 1997</p>

<ul><li><p>Pmw now uses the standard Tkinter module.  The Tk module has been
    dropped.  This means that the Tk module functions such as after,
    bell, bind, update, etc, are no longer available and the equivalent
    Tkinter methods should be used.</p>


<li><p>To restore some of the features of the Tk module, Pmw.initialise()
    now adds run-time hooks into Tkinter to get notification of when Tk
    widgets are created and destroyed.  It also modifies the CallWrapper
    class so that errors during callbacks and bindings can be displayed
    in a window.  If Pmw.initialise() is not called, Tkinter is not
    modified and these features are not available.</p>


<li><p>If a Tk widget which is acting as the hull of a megawidget is
    destroyed, then the megawidget is destroyed as well.  This can
    only happen if Pmw.initialise() is called.</p>


<li><p>Pmw.initialise() now takes the Tkinter root as its argument.</p>


<li><p>The parent of megawidgets now defaults to the Tk root.  Previously,
    the parent of non-toplevel megawidgets had to be given.</p>


<li><p>Added PmwBase.tracetk() function to get trace of calls to the Tcl
    interpreter for debugging.</p>


<li><p>Added functions to PmwBase to display a busy cursor over the
    application such as when a modal dialog is displayed or it is
    blocked doing a long calculation.  Uses busy command of the blt
    extension, if present.</p>


<li><p>Created a nifty new demo which demonstrates most of the megawidgets
    in a convenient way.</p>


<li><p>Added a TextDialog.</p>


<li><p>Added functionality to handle the grabbing of nested modal dialogs
    correctly.</p>


<li><p>Added an activatecommand option to Dialog which allows, for example,
    the PromptDialog widget to set the keyboard focus when it is
    activated.</p>


<li><p>Added tests for Counter and logicalfont.</p>


<li><p>The ScrolledListBox selectioncommand is no longer given the widget
    as its first argument.</p>


<li><p>Several method, function and component names were changed, to be
    consistent with the coding conventions.</p>


<li><p>Some of the effects of moving from the Tk module to Tkinter are:</p>
<ul><li><p>The Tk module used to exit if there were no non-root toplevel
      windows shown.  This is no longer the case and so the application
      must handle this explicitly, particularly if the root window is
      withdrawn and the last non-root toplevel is deleted by the window
      manager.</p>


<li><p>The Tk module bind functions and methods used to take a noEvent
      argument to indicate that the Tk event should not be passed to the
      callback.  Tkinter does not support this.</p>


<li><p>The Tk module initialise() function should be replaced by
      "root = Tkinter.Tk()" and root should be used instead of "Tk.Root()"</p>


<li><p>The Tk module quit() function should be replace by "root.destroy()".</p>


<li><p>Toplevels are not hidden when created.  To be consistent,
      MegaToplevels are not hidden either.</p>


<li><p>The hide and show methods are not available for Tkinter Toplevels,
      only MegaToplevels</p>


<li><p>There is no grid_configure method.</p>


<li><p>Tkinter.Canvas.coords() returns a python list, not a tuple.</p>


<li><p>The Tkinter cget and configure widget methods always return
      strings for the option values.  The Tk module used to convert the
      string to the appropriate python type (such as string, integer,
      float, Variable, Image, callback function).</p>


<li><p>Tkinter Menu and Toplevel classes incorrectly have a pack method.</p>


<li><p>Menu class has no geometry method.</p>


<li><p>Canvas focus returns <strong>''</strong> rather than None.</p>


<li><p>Text mark_gravity returns <strong>''</strong> rather than None.</p>

</ul>

</ul>
<p>  13 March 1997</p>

<ul><li><p>Release of version 0.2</p>

</ul>
<p>  17 March 1997</p>

<ul><li><p>Set default WM_DELETE_WINDOW protocol of Tkinter.Toplevel to
    destroy() and removed duplicated protocol request from all demos.</p>


<li><p>Modified text of ShowBusy demo to indicate that busy cursor will
    only be seen if the BLT extension is present.</p>


<li><p>Replaced call to update() in PmwLabeledWidget.py with update_idletasks().</p>


<li><p>Changed name of PromptDialog component from <strong>'entry'</strong> to <strong>'entryfield'</strong>.</p>

</ul>
<p>  28 April 1997</p>

<ul><li><p>Version 0.3 released internally</p>

</ul>
<p>  19 August 1997</p>

<ul><li><p>Many changes made (see the version 0.4 porting guide for
    more details).</p>


<li><p>The option propagation mechanism that iwidgets uses is too
    cumbersome, too hard to understand and, in python, too slow. 
    Developed a new mechanism which is more explicit in naming
    options.  This resulted in most options which were simply
    propagated to components being removed.  Removed keep(), rename()
    and ignore() methods and "usual" options.</p>


<li><p>For speed, Pmw no longer queries the Tk option database for
    default values for megawidget options.  Hence, resource names and
    classes do not need to be supplied when creating options and
    <strong>None</strong> is returned for the resource name and class when using
    <code>configure()</code> to query the options.  Option "types" no longer
    used.</p>


<li><p>Changed method and component names to be more consistent.</p>


<li><p>Replaced most uses of pack() with grid().</p>


<li><p>Megawidgets no longer inherit from LabeledWidget.  Instead they
    call createlabel() to optionally create the label component.</p>


<li><p>Removed child site from EntryField and rewrote ComboBox
    accordingly.</p>


<li><p>Wrote lots more documentation, including automatically generated
    reference manuals.</p>


<li><p>Removed PushButton and rewrote ButtonBox to directly create
    Tkinter.Buttons rather than PushButtons.</p>


<li><p>Added initialisation options - options which can be set at
    creation time but not later using configure().</p>


<li><p>Added aliases for components.</p>


<li><p>Modified the base classes so that during option configuration,
    components are configured <em>before</em> configuration called functions
    are called.</p>


<li><p>Added several more megawidgets.</p>


<li><p>Added interface to BLT graph and vector commands.</p>


<li><p>Created PmwLazy module for lazy importing of Pmw - avoids loading
    megawidgets which are not used.</p>


<li><p>Added several more functions for handling color and fonts.</p>


<li><p>Replaced Counter and EntryField <em>time</em> with <em>timeN</em> and <em>time24</em></p>


<li><p>Pmw.initialise() will now create Tkinter.Tk if not given root.</p>

</ul>
<p>  1 September 1997</p>

<ul><li><p>Release of version 0.4</p>

</ul>
<p>  5 September 1997</p>

<ul><li><p>Modified the base classes so that the Tk option database resource
    class of megawidgets can be overridden in the call to the
    constructor using the <strong>hull_class</strong> option.</p>


<li><p>The separators in Pmw.PanedWidget are now active - they can be
    grabbed, like the handles, and moved around.  The cursor now
    changes to the correct left/right or up/down cursor when over a
    separator or handle.  (Clemens Hintze)</p>


<li><p>Fixed bug in MessageInfo demo Dismiss button.  If it is invoked,
    an error occurs saying "not enough arguments".  (Mark Colclough)</p>

</ul>
<p>  9 September 1997</p>

<ul><li><p>Added the <strong>useTkOptionDb</strong> argument to Pmw.initialise which
    specifies that the initial values of megawidget options are to be
    set by querying the Tk option database.</p>


<li><p>When used to query options, the configure() method now returns the
    resource class and name of the options.</p>

</ul>
<p>  19 September 1997</p>

<ul><li><p>Changed functions datestringtoint() and timestringtoint() to
    datestringtojdn() and timestringtoseconds().  Changed return value
    of datestringtojdn() to be Julian Day Numbers rather than seconds
    since the epoch.</p>


<li><p>Fixed a bug in the date Counter due to use of time.timezone, by
    replacing, when calculating date increments, calls to the time
    module with calls to datestringtojdn().</p>


<li><p>Added century pivot year (setyearpivot function) to Counter date
    datatypes to handle two-digit years.</p>


<li><p>Added date_dmy4, date_mdy4 and date_y4md datatypes to Counter.</p>


<li><p>Modified demos All.py and ScrolledText.py so that demos can be called
    from directories other than the demos directory.  (Case Roole and 
    Guido van Rossum)</p>


<li><p>Changed the default for the Pmw.Balloon <em>label_justify</em> option to
    <em>left</em> to improve appearance of multi-line balloons.  Pmw.Balloon
    now replaces newlines with spaces in the statusHelp string so that
    the strings look better when displayed in a Pmw.MessageBar. 
    (Andreas Kostyrka)</p>


<li><p>Pmw.Blt now calls <em>package require BLT</em> when checking for the
    existence of Blt, so that it can be loaded if it is not statically
    linked.  (Clemens Hintze, Matthias Klose)</p>


<li><p>Copied earthris.gif and flagup.bmp files from Tcl distribution to
    test directory, just in case they have not been installed. 
    (Jonathan Kelly)</p>


<li><p>Lots of improvements to the documentation and documenting recent
    changes.</p>

</ul>
<p>  16 October 1997</p>

<ul><li><p>Modified Pmw.Balloon and Pmw.ComboBox to work around a bug in the
    Windows95 version of Tk which caused the popup windows to appear
    in the wrong place.  (Fredrik Lundh and Jerome Gay)</p>


<li><p>Added Pmw.maxfontwidth() function. (Rob Pearson)</p>

</ul>
<p>  24 October 1997</p>

<ul><li><p>Changed PmwBase._reporterror to handle the class exceptions of
    python 1.5.  (Case Roole)</p>

</ul>
<p>  29 October 1997</p>

<ul><li><p>Fixed a bug in forwardmethods() function which occurred if the
    <em>toClass</em> class had a method called <strong>type</strong>.</p>

</ul>
<p>  7 November 1997</p>

<ul><li><p>Changed tests/Test._getErrorValue to handle the class exceptions of
    python 1.5.  (Michael McLay)</p>


<li><p>Changed bug fix in forwardmethods() function to use the
    <code>exec execString in d</code> construct. (Guido van Rossum)</p>


<li><p>Can now use Pmw.MegaArchetype as a base class just to get option
    handling; it will not create the hull component unless requested. 
    Moved __str__() and interior() methods from Pmw.MegaToplevel and
    Pmw.MegaWidget to Pmw.MegaArchetype class.</p>

</ul>
<p>  10 November 1997</p>

<ul><li><p>Added <em>textclass</em> option to Pmw.ScrolledText and <em>listboxclass</em>
    option for Pmw.ScrolledListBox to allow embedding of custom
    widgets.</p>


<li><p>Added Mitch Chapman's <strong>FontText</strong> module to the <code>demos</code> directory
    and used it to display the demo source code in colour.</p>


<li><p>Added two notebook megawwidgets, Pmw.NoteBookR and Pmw.NoteBookS. 
    (Case Roole and Joe Saltiel)</p>


<li><p>Added Pmw.ScrolledCanvas megawidget. (Joe Saltiel)</p>


<li><p>Added Pmw.TreeBrowse megawidget. (Michael McLay)</p>


<li><p>Added Pmw.Group megawidget and modified to use <code>grid()</code> instead
    of <code>pack()</code>. (Case Roole)</p>


<li><p>Release of version 0.5</p>

</ul>
<p>  12 November 1997</p>

<ul><li><p>Added <em>pyclass</em> option to components and removed <em>textclass</em>
    option from Pmw.ScrolledText and <em>listboxclass</em> option from
    Pmw.ScrolledListBox.  (Suggested by Shen Wang)</p>


<li><p>Added label component to Pmw.ButtonBox megawidget.</p>


<li><p>Fixed mis-spelling of PmwTreeBrowse in Pmw.py.</p>


<li><p>Release of version 0.5.1</p>

</ul>
<p>  5 December 1997</p>

<ul><li><p>The pyclass option can now be None.  If so, createcomponent
    returns None.</p>


<li><p>Removed tagtype option from Pmw.Group.  Can now use the more
    general tag_pyclass instead.</p>


<li><p>Added tcl call to <code>load {} Blt</code> when testing for presence of Blt.</p>


<li><p>Added julian and papal options to Pmw.ymdtojulian and
    Pmw.juliantoymd functions and made sure divisions give the same
    result as C even when operands are negative.</p>


<li><p>Exported ymdtojulian and juliantoymd functions.</p>


<li><p>Fixed bug in activate method.  Did not prepend TclError with Tkinter.</p>


<li><p>When the Blt busy hold command is called from showbusycursor, the
    bindtags on the busy window are set so that no events cause
    callbacks to occur for the toplevel or all bindings.  Also, while
    a busy window is up, the focus is changed to the busy window so
    that no keyboard events are accepted.  This fixes a bug where the
    Tkinter._nametowidget function could crash with a <code>KeyError: _Busy</code>
    if there was a binding on a toplevel window and the mouse
    was pressed while the busy cursor was up.</p>

</ul>
<p>  9 December 1997</p>

<ul><li><p>Fixed bug in Pmw.datestringtojdn() when dealing with century year,
    such as 2000.</p>

</ul>
<p>  10 December 1997</p>

<ul><li><p>Added <em>where</em> option to <code>Pmw.ScrolledText.importfile()</code>.  (Graham
    Matthews)</p>

</ul>
<p>  16 December 1997</p>

<ul><li><p>Modified Pmw.RadioSelect and Pmw.ButtonBox so that you can no
    longer index their buttons using regular expressions.  This
    feature seemed to have little use and caused problems with buttons
    labeled for example <em>a*</em> and <em>b*</em>.  (Problem reported by Rob
    Hooft)</p>


<li><p>Added updateFunction option to Pmw.busycallback().  If set, the
    function will be called just after the command given to
    Pmw.busycallback().  If the function is set the Tkinter update()
    method, then this will clear any events that may have occurred
    while the command was executing.</p>

</ul>
<p>  30 December 1997</p>

<ul><li><p>Changed ymdtojulian and juliantoymd functions to jdntoymd and
    ymdtojdn, because the meaning of "julian" is ambiguous, whereas
    the meaning of "Julian Day Number" is not (maybe).</p>


<li><p>Converted Pmw to use python 1.5 package mechanism.  (Michael McLay
    and Case Roole)</p>


<li><p>Removed Pmw.py and PmwLazy files.  Added __init__.py, PmwLoader.py
    and Pmw.def files.  (Case Roole)</p>


<li><p>Applications can now specify at runtime which version of Pmw to
    use and also which alpha versions, if any.  (Case Roole)</p>


<li><p>Modified Pmw code for the version of Tkinter released with python
    1.5.</p>


<li><p>Release of version 0.6</p>

</ul>
<p>  5 January 1998</p>

<ul><li><p>Fixed alpha version handling so that alpha versions do not have to
    supply PmwBase.py and PmwUtils.py.  (Case Roole)</p>


<li><p>Added example alpha directory and documentation.  (Case Roole)</p>

</ul>
<p>  7 January 1998</p>

<ul><li><p>Added selectmode option to Pmw.RadioSelect megawidget.  (Roman
    Sulzhyk)</p>


<li><p>Added some changes to Pmw.ScrolledCanvas to get around some bugs. 
    (Joe Saltiel)</p>


<li><p>Release of version 0.6.1</p>

</ul>
<p>  8 January 1998</p>

<ul><li><p>Added some more changes to Pmw.ScrolledCanvas.  (from Joe Saltiel)</p>

</ul>
<p>  12 January 1998</p>

<ul><li><p>Added Pmw.OptionMenu Megawidget. (Roman Sulzhyk)</p>

</ul>
<p>  20 February 1998</p>

<ul><li><p>Added new Pmw.MenuBar features to delete menus and menuitems,
    enable and disable menu bar and to add cascade menus.  (Rob Pearson)</p>


<li><p>Added extra arguments to Pmw.Color.spectrum for more control over
    color choice.</p>

</ul>
<p>  23 February 1998</p>

<ul><li><p>Added canvasbind() method to Pmw.Balloon.</p>


<li><p>Fixed demos/All.py so that it will correctly determine which Pmw
    version to use even if it is in a directory symlinked to the demos
    directory.</p>


<li><p>Removed "import DemoVersion" from all demos, except All.py, so
    that they will work unchanged when copied outside of the Pmw
    distribution.</p>


<li><p>Release of version 0.6.2</p>

</ul>
<p></p>



    <center><P ALIGN="CENTER">
    <IMG SRC = blue_line.gif ALT = "" WIDTH=320 HEIGHT=5>
    </p></center>
    

    <font size=-1>
    <center><P ALIGN="CENTER">
    <a href="index.html">Home</a>. 
    Pmw 0.6.2
    Maintainer
    <a href="mailto:gregm@iname.com">gregm@iname.com</a>.
    23 Feb 1998
    </p></center>
    </font>

    </body>
    </html>