Changeset 29935 in project


Ignore:
Timestamp:
10/17/13 07:32:43 (8 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [24.212.179.143]: Add tip about how to get it to work under Windows 7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/pstk

    r29751 r29935  
    8181</enscript>
    8282
     83* PS/Tk currently does not work on Windows 7 due some problem with Posix/process.  It will simply hang after (tk-start "tclsh85") See http://bugs.call-cc.org/ticket/765 for a workaround (You need to add
     84<enscript>
     85(set! process (lambda (#!rest rest)
     86    (receive (a b c d) (apply process* rest)
     87    (values a b c))))
     88</enscript>
     89
     90to your .scm file like this:
     91
     92<enscript>
     93(require-extension pstk)
     94
     95;; http://bugs.call-cc.org/ticket/765
     96;; broken posix/process function under Windows 7 (MingW)
     97(set! process (lambda (#!rest rest)
     98    (receive (a b c d) (apply process* rest)
     99    (values a b c))))
     100(tk-start "tclsh85")
     101(tk/pack
     102  (tk 'create-widget 'button 'text: "Hello"
     103      'command: (lambda () (display "Hello world") (newline)))
     104  'padx: 20 'pady: 20)
     105(tk-event-loop)
     106</enscript>
     107
    83108=== Authors
    84109
Note: See TracChangeset for help on using the changeset viewer.