2015-02-17

Page
edited by
Lawrence J. Patrizio

Changes between revision 1
and revision 2:

...

Project 1: GUI Design

Monday, February 16, 2015

*Required Tasks:*

* _Add a clear data method._
!Screen Shot 2015-02-16 at 11.34.51 PM.png|thumbnail,border=1,width=200!
!Screen Shot 2015-02-16 at 11.34.19 PM.png|border=1,width=300!  !Screen Shot 2015-02-16 at 11.34.36 PM.png|border=1,width=300!

* _Add new capabilities to the mouse._ _ _

_ _

Each of the colored circles are locations that I clicked with mouse while holding control. They get added to the image when you create the next batch of data points.

_ _ !Screen Shot 2015-02-16 at 11.35.44 PM.png|border=1,width=300!  !Screen Shot 2015-02-16 at 11.36.21 PM.png|border=1,width=300!_ _
_ _

_ _

* _Create a dialog window that will allow the user to choose which random distribution to use for the random points._

!Screen Shot 2015-02-16 at 11.37.30 PM.png|border=1,width=300!  !Screen Shot 2015-02-16 at 11.37.55 PM.png|border=1,width=300!

*Extensions:*

* _Make it so the button-2 movement adjusts the size of the ovals. Movement up the window should increase the size (e.g. moving the mouse 10% of the way up the screen increases the size by 1 pixel). Recall that in your button-1 motion handler, you kept track of incremental changes. In this case, you want to keep track of how much the mouse has moved since you first clicked it. Why? If you keep track of incremental changes, you run the risk of having each movement result in no change in size. I suggest you add a field that keeps track of the original size._

...

I accomplished this through the use of holding down control and moving the mouse up or down the screen. Below are two images: smaller basic size and bigger altered size. !Screen Shot 2015-02-16 at 11.56.11 PM.png|border=1,width=300!  !Screen Shot 2015-02-16 at 11.58.11 PM.png|border=1,width=300!
* _Add widgets to make it possible for the user to control how many random data points are added._

_ _ !Screen Shot 2015-02-16 at 11.58.19 PM.png|thumbnail,border=1,height=200!
_ _

_ _

* _Add a list box with different shapes that lets you control the shape drawn for each data point._
!Screen Shot 2015-02-16 at 11.58.24 PM.png|thumbnail,border=1,height=200!  !Screen Shot 2015-02-16 at 11.58.54 PM.png|border=1,width=300!

*Conclusion:*

I enjoyed this lab, I thought there was a good amount of freedom while also a healthy amount of structure. If I could go back and redo anything would be to comment things as I went to make the debugging process easier at the end.

View Changes Online
View All Revisions |
Revert To Version 1

Project 1: GUI Design

Monday, February 16, 2015

Required Tasks:

Add a clear data method.

Add new capabilities to the mouse.

Each of the colored circles are locations that I clicked with mouse while holding control. They get added to the image when you create the next batch of data points.

Create a dialog window that will allow the user to choose which random distribution to use for the random points.

Extensions:

Make it so the button-2 movement adjusts the size of the ovals. Movement up the window should increase the size (e.g. moving the mouse 10% of the way up the screen increases the size by 1 pixel). Recall that in your button-1 motion handler, you kept track of incremental changes. In this case, you want to keep track of how much the mouse has moved since you first clicked it. Why? If you keep track of incremental changes, you run the risk of having each movement result in no change in size. I suggest you add a field that keeps track of the original size.

I accomplished this through the use of holding down control and moving the mouse up or down the screen. Below are two images: smaller basic size and bigger altered size.

Add widgets to make it possible for the user to control how many random data points are added.

Add a list box with different shapes that lets you control the shape drawn for each data point.

Conclusion:

I enjoyed this lab, I thought there was a good amount of freedom while also a healthy amount of structure. If I could go back and redo anything would be to comment things as I went to make the debugging process easier at the end.

View Online
|
Add Comment

Show more