Click Click Graphics

0 views
Skip to first unread message

Ermelindo Klatt

unread,
Aug 3, 2024, 4:11:57 PM8/3/24
to cadersholkseg

My game basically has a visible timer and counter that checks how many times the window has been clicked. The user is supposed to click in the window to start a 60 second timer. Then, the game will show a number telling the user the amount of times they have to click in the window in order to win the game.

However, in my code whenever I click in the window to begin the game, the timer starts but it doesn't display the message telling me how many times I need to click in the window to win the game. It just waits for the timer to finish AND THEN it let's me click inside of the window.

I can see a couple of little fixes on this one. By using time.sleep(1) you're essentially causing the script to stop on that line and ignore all the other logic, and then do all the other logic very quickly skipping back to the sleep again. My solution would be to replace that by continuously checking the time with time.time() rather than sleep, so you don't need any other libraries, as you're already using time. Also, by having a loop exterior to another it makes it more complicated to keep a track of when lines are being called, so I replaced it with one for you. I hope this modification to the script below helps you the faster fluttering of the screen I find adds some more urgency.

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Hoping someone is familiar with Zelle's graphics module. I need to create a program that calls a method 10 times. The method draws a circle on a mouse click. I was able to make the circle appear in a new location (but not the original circle disappear). I've created a method (which I am sure is not correct) and a while loop. What am I missing? The circle should present when the window opens, the user clicks 10 times, each time the circle moves to a new location, and then the program ends with it in its final position. My code below, with description. Thanks.

It seems to have to do something with permissions, I am logged in as DOMAIN/XXXX and there is also a local user XXXX, if i open the local users userdirectory and allow permissions to open it the right click slowdown is gone

Based on your description, it seems that the permissions you have on Local users are blocking this service to be ran. If I understand correctly, when allowing the user run this service everything is working fine so definitely is not a problem with the driver but the configuration in the system.

I have run some tests based on this behavior but everything seems to be working fine, the right click on desktop works normally, liked mentioned before this is not a problem with the driver but the configuration in the system.

I just had the same experience as Eristoff. I installed a fresh copy of Windows 10 Enterprise on a Dell XPS 15 9530. The context menu was really slow. Disabling igfxDTCM Module 6.15.10.4271 would make it fast again. But I wanted to keep the context menu so I tried the permission trick and it worked! I'm logged in as MYDOMAIN\foo, but there is also a local account named foo so I have two user folders called foo and foo.MYDOMAIN. After I entered \Users\foo and clicked continue on the "Click continue to permanently get access to this folder" prompt, the context menu slow down is gone. So it seems that the Intel software is confused about the user folders somehow.

I have the same problem with you on my HP ZBook 14 G2 with Windows 10. When I login with local account, the context menu is OK, if I login with a domain account, the context menu is VERY SLOW. It's newly installed OS and all settings are by default. Apparently it is affecting a lot of users, I think Intel should fix this issue!

Intel does not verify all solutions, including but not limited to any file transfers that may appear in this community. Accordingly, Intel disclaims all express and implied warranties, including without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement, as well as any warranty arising from course of performance, course of dealing, or usage in trade.

I am forever accidentally middle-clicking and closing browser tabs. I would like to disable the middle-click at the lower edge of my touchpad (Thinkpad T490).
I set middle_button_emulation = false, which has been ignored.
Suggestions appreciated!

The background of this is that I was searching for a decent analog clock for my desktop, and found cairo-clock to be what I need, only that I cannot click through it, and there's no option for that. So I am searching for a generic xorg/compiz level solution to this problem, that I can apply on any window of my choice.

I have a data which contains the number times users visits a page and the time of day the visit occurs. I would like to display this data visually but I don't know what is the best representation of the data.

I am thinking perhaps a pie chart where each slice represents the amount of times a link is clicked. Another option is to display the data as a bar chart where each bar height is dependent on the number of times a link is clicked.

It all depends on the actual use; who uses it to what aim. There are a million alternatives, and what you must bear in mind is what data is ok to be approximately right and what parts need to be exactly right. You could call this the granularity of the data.

How the data is fed is of course also a consideration. But mainly: what needs to be how detailed to whom at what point? how many levels "down" do you need to accomodate?

The bigger part of your question is extremely complex; it is about visualising data. Being a little practical, I would suggest take a look at Google Charts I and Google charts II and get some inspiration. You can also get far more elaborate and complex ones, for example HighCharts.

BTW: Finally, I have a reason to name Sparklines! They are the best: they are tiny inline, live charts. They can convey a massive amount of information in ordinary text height. Can you tel I am a big fan? Here is how the defaults look:

Sometimes the left click stops working. I am unable to even use the windows key to search for restart command.
Workaround - Press and hold the power button and shutoff the OS. Then I do a restart. The mouse works fine after a restart.

Removing backgrounds from images used to be difficult and time consuming. Now you just click a button, wait a second, and then pick your jaw up off the floor after seeing your background vanish like magic.

Never make the same stunning graphic more than once. In one click, you can turn your Twitter header into a Facebook cover, your Instagram post into a Pinterest pin, or a Facebook ad into a billboard ad.

Snappa is a must have tool for the non-designers who publish content online. It's super easy to use and has a nice set of templates, and despite its simplicity offers unlimited possibilities for creative minds.

Is it possible to create an interactive PDF where you can click a scaled down embedded image and it opens it up large in a preview like window hovering in front of the open PDF? Sort of like the PDF is extending outwards and then a second click will close the window back into the PDF. I am thinking along the lines of quicklook in OS X. I don't mean just zooming the document into the clicked picture and then zooming back out again. Maybe javascript is necessary? I know websites have this sort of behavior all the time.

A view provides the means of viewing and interacting with the components of a Map.The Map is merely a container, storing the geographic information contained in base layers and operational layers.The View renders the Map and its various layers, making them visible to the user.

There are two types of views: MapView and SceneView.The MapView renders a Map and its layers in 2D. The SceneView renders these elements in 3D. View is the base class of MapViewand SceneView and has no constructor. To create a view, you must do so by directly creating an instance of eitherMapView or SceneView.

In the snippet above, you'll notice a container property set on the view. The containerproperty is the reference to the DOM node that contains the view. This is commonly a element. The containerreferenced in the example above might look something like:

A Map may have multiple views associated with it, including a combination of MapViews and SceneViews. See theGeodesic buffers and 2D overview map in SceneViewsamples to learn how a MapView and a SceneView can display the same map in a single application. While multiple views canreference the same map, a view may not associate itself with more than one Map instance.

The View also allows users to interact with components of the map. For example, when a user clicks or touches the location of afeature in a map, they are not touching the feature nor the map; the event is actually handled with the View that references the map andthe LayerView that references the layer. Therefore, events such as click are nothandled on the Map or the Layer, but rather on the View. See MapView andSceneView for additional details.

Use the padding property to make the center,and extent, etc. work off asubsection of the full view. This is particularly useful when layering UIelements or semi-transparent content on top of portions of the view. Seethe view padding sample for an exampleof how this works.

By default, the popup property is an empty object that allows you to set the popup options.A Popup instance is automatically created and assigned to the view's popupwhen the user clicks on the view and popupEnabled is true, when the view.openPopup() method is called,or when some widgets need the popup, such as Search. If popup is null, the popup instance will not be created.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages