pharo

How do I enable the middle mouse button for Pharo on Ubuntu?

二次信任 提交于 2019-12-05 15:41:54
I'm fairly new to Pharo. I'm running Ubuntu Raring Ringtail (13.04) and using the PPA recommended on the Pharo web site, together with the Pharo 30218 image, and looking to enable the middle-click capability. (I have a Logitech trackball, and several apps are already aware enough to use the scrolling capability of the middle wheel. So, I think it's something I need to do specifically for Pharo.) I'm on mac so my answer may not be that useful for you. But the middle mouse button does not bring any menu in Pharo and by default the mouse wheel should work. Pay attention Pharo 3.0 is under heavy

Sinatra-like web-framework for Pharo Smalltalk [closed]

佐手、 提交于 2019-12-05 15:18:39
Is there a Sinatra -like web-framework for Pharo? Or can the Zinc-HTTP-components do that more or less out-of-the-box? Thanks! Depending on your exact needs, Seaside-REST might also be interesting . I have been kindly pointed to Ratpack by Tim Felgentreff http://ss3.gemstone.com/ss/RatPack.html He also has a github repository, probably with more up-to-date code: https://github.com/timfel/ratpack 来源: https://stackoverflow.com/questions/13674859/sinatra-like-web-framework-for-pharo-smalltalk

How do I ask the user for a file name?

冷暖自知 提交于 2019-12-05 08:31:10
Searching for the call of a FileDialog I would like to ask the user for a file name in Pharo 4.0 Through the spotter I found class FileDialogWindow with a method answerFileName Looking for the senders of #answerFileName I get to class UITheme where it is called in the method chooseFileNameIn: aThemedMorph title: title extensions: exts path: path preview: preview And from there I come to class TEasilyThemed with the method chooseFileName: title extensions: exts path: path preview: preview From there finally I get to class WidgetExamples class >> exampleDialogs And then I have the call

What's the difference between Polymorph and Spec?

喜欢而已 提交于 2019-12-05 08:13:41
Recently a Spec documentation was released on-line , how it is related with the Polymorph project? It would be nice to read about the future of these projects. Is Polymorph discontinued? Polymorph is a UI framework. Spec is a UI description framework based on literal arrays. In other words the widgets you see on the screen come from Polymorph. A UI builder takes a Spec specification and builds those widgets: "here's a button of this size, and this is its name". In Squeak, the same relationship exists between Morphic or MVC, and ToolBuilder. 来源: https://stackoverflow.com/questions/11251663

What is the difference between a Morph in Morphic and a NSView in Cocoa?

China☆狼群 提交于 2019-12-05 04:22:08
I'd like to know about the things that make Morphic special. Morphic is much more than NSView or any other graphics class that simply allow the re-implementation of a limited set of features. Morphic is an extremely malleable UI construction kit. Some design ideas behind Morphic makes this intention clear: A comprehensive hierarchy of 2D coordinate systems is included. They are not restricted to Cartesian or linear. Useful nonlinear coordinate systems include polar, logarithmic,hyperbolic and geographic (map like) projections. Separation of the handling of coordinate systems from the morphs

Microframeworks for Squeak/Pharo web service

北城余情 提交于 2019-12-05 00:09:46
问题 Lots of languages have microframeworks for writing very tiny websites or web services, such as Flask for Python, or Sinatra for Ruby. On Squeak, there doesn't seem to be any equivalent; Iliad, Seaside, and AIDA are all very heavy for just having a little service. What's the preferred way to accomplish this? Directly injecting a hanlder into Comanche or Swazoo? 回答1: I would like to share what I think is more up-to-date information (as of end of 2012). Zinc Components Currently in Pharo 1.4/2.0

How to copy several Monticello commits from local repository to Smalltalkhub.com automatically?

故事扮演 提交于 2019-12-04 10:29:30
I commit several versions of Monticello packages to a local repository on my disk during the day. At a later time I want to sync the local repository with a Smalltalkhub.com repository. At the moment I copy the local commits manually one by one to the Smalltalkhub repository using the Monticello browser. How can i automate this task? You can use Gofer to automate your Monticello tasks. Gofer new package: 'MyProject-Core'; package: 'MyProject-Tests'; url: 'http://smalltalkhub.com/mc/USER/MyProject/main/' username: 'USER' password: '***'; push. In the Gofer chapter of the "deep into pharo" new

What is the difference between self and yourself in Smalltalk?

爷,独闯天下 提交于 2019-12-04 10:07:48
问题 In Smalltalk, there are two terms often found within a method body: self and yourself . What is the difference between them? 回答1: The reserved word self is a pseudo variable (you cannot assign to it) that refers to the current receiver of the method where it is used. On the other side yourself is a message you can send to any object to get that very same object. The implementation of yourself is yourself ^self meaning that the message yourself will behave as I just explained. The reason why

Draw table in Pharo

天大地大妈咪最大 提交于 2019-12-04 07:40:39
I’d like to display a table of values and be able to select cells. How would I do this in Pharo Smalltalk? I’ve heard talk of Morphic widgets able to do this, but I’m still really new to Smalltalk. Clement Bera I would look into TreeModel class side examples. I used to do that: tree := TreeModel new. tree openWithSpec. tree columns: (Array with: (TreeColumnModel new displayBlock: [:node | node content first asString ]; headerLabel: 'Name'; yourself) with: (TreeColumnModel new displayBlock: [:node | node content second asString ]; headerLabel: 'Last Name'; yourself) with: (TreeColumnModel new

How does the organisation of classes in categories and packages work in different versions of Pharo?

北城余情 提交于 2019-12-04 07:18:36
Can someone explain how the organisation of classes in Pharo works in different versions of Pharo? All Classes are part of the Smalltalk global (have always been, seem to stay like this?) Classes can have a Category, but thats only a kind of tag? (has always been, seems to stay like this? But the categories are somehow mapped to packages sometimes ?) There are different kinds of Packages in different Versions of Pharo MCPackages representing Monticello Packages PackageInfo RPackage (Pharo 1.4)? In addition there is SystemNavigation which somehow helps navigating classes and methods based on