Questions tagged [squeak]

Squeak is a modern, open-source implementation of the Smalltalk language, with a history of being very easy to port across platforms. See https://squeak.org/.

Squeak started in 1996 as a project of Alan Kay and friends at Apple. They wanted an open source Smalltalk with a view to building Smalltalk's replacement.

Among its features:

  • The Virtual Machine is written in (a subset of) Smalltalk.
  • Runs bit-identically across all its platforms.
  • Very easy to port: it runs on Linux, Macs (both old and new), Windows, iPhones, iPads, and even bare metal.
412 questions
0
votes
1 answer

In Squeak Smalltalk, how can type a number which is base-250 positional numeral system?

One thing that makes me particularly like about Smalltalk is that it has the power to do arithemtic calculations of numbers with the base of different integers. I guess no other language can do the same. Please see the codes below. Transcript…
0
votes
1 answer

window position far to the right

Whenever I try to open a Browser, a Transcript or a Test runner window, theese windows open far to the right, and are partially out of the work area. I always need to manually move then toward the center of the work area. any suggestion ?
0
votes
0 answers

Smalltalk Squeak language

I have implemented the canvas on which we draw with a brush in Smalltak Squeak but with only a single color and a single size. I'd like to add the possibility of changing the color and the size of the brush. Could anyone help me please ? Thank you…
Yoan15
  • 33
  • 2
  • 5
0
votes
1 answer

smalltalk stepTime and step methods not working well

Hi I have the following implemention of step in smalltalk step |dx dy| [isPlaying] whileTrue:[ speed := speed - 0.1. dx := speed / 15 * 4 * direction cos. dy := speed / 15 * 4 * direction sin. speed <= 0 …
user3132295
  • 288
  • 4
  • 23
0
votes
1 answer

ImageMorph squeak\smalltalk turn image

I have an ImageMorph and I want to set the image in diagonal. Is there any way to do it? Thank you in advanced
user3132295
  • 288
  • 4
  • 23
0
votes
3 answers

Sleep blocks whole program (Smalltalk Squeak)

I'm making a N*N queens problem with gui. I want the gui to stop for x seconds each move of every queen, problem is, the program just stacks all the waits together and then runs everything at speed. I'm giving the code here:…
Ariel Pinchover
  • 654
  • 3
  • 17
0
votes
1 answer

How to read keyboard state in Smalltalk (Squeak) without delays

In my last homework they want me to code a game, controlled by keyboard. Part of the game is to press a key and keep holding it. I use keyDown method to track keyboard events. And what is happening, is that after first event (when i read a single…
0
votes
2 answers

Getting the new Squeak 5 to run on 64 bit Linux

In short: how do I get Squeak 5 to run on x64 Linux? I dont care whether the executable is 32 or 64 bit as long as it runs and opens the Squeak 5 image. Here is what I tried: When I try to run the executables from the Squeak 5 package i get:…
Bernd Elkemann
  • 23,242
  • 4
  • 37
  • 66
0
votes
1 answer

Squeak 5.0 on 64-bit Linux ignores -headless and -nodisplay

I am trying to run the new Squeak 5.0 on 64-bit Linux with no display driver. On an older server I always used -nodisplay or -headless and they worked, however now they are ignored and I get this error message: squeak: could not find any display…
Bernd Elkemann
  • 23,242
  • 4
  • 37
  • 66
0
votes
1 answer

How to draw a Table with cells in pharo

i'm new to smalltalk and i come with a problem. i'm trying to draw a table where the attributes of the variables shown. i found this answer to a similar question that i'm doing here: Draw table in Pharo , but in there it's not clear how to create…
Ordnael
  • 23
  • 1
0
votes
1 answer

How to remove an attachMorph of HandleMorph in smalltalk from self

i need your help i am creating a line from a spesific location to mouse location with this code. after click i am trying to remove this line but i have no idea how please help me remove the live after click what should i change ? stk:= (LineMorph…
2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40
0
votes
2 answers

How to Check if objectA has all message as objectB in smalltalk?

I am using smalltalk - i need to check if objectA has all the messages(methods) that objectB has . i need to write my own code, how could it be done ?
2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40
0
votes
1 answer

Create LineMorph From 100@100 to mouse location in smalltalk

I'm stuck with a simple thing i cant understand please help me out I'm really stuck i need to create a LineMorph that will change dynamically start from point 100@100 To mouse location how can i achieve it ?
2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40
0
votes
1 answer

Squeak smalltalk mouse listener or keyboard listener

Hello i am busting my head open to find out how to use mouse listener in squeak Small talk or keyboard listener Please help me and tell me how is it done ?
2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40
0
votes
1 answer

How to change the auto completion button in squeak?

is there a way to change the shortcut to invoke auto completion in the squeak vm (standard is tab)? Thanks in advance
Koogle
  • 401
  • 4
  • 9