Python 3, tkinter, buttons [closed] - button

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I want to move my button in tkinter, i am making game chess and want to click first time on figure and on second click move this, someone know how does it possible ?
Thx !

I believe you can use buttons for this although it is uncommon. Make pure black/white frames for the empty squares. Manage the alias of the buttons of the figures individually (maybe you should manage white/black background in the figure subclasses). Use a 8x8 grid in a frame and make them show/hide using grid() and grid_remove() / grid_forget().
You can find a nice reference here and here.

Related

How Can I create animations like on this website? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 1 year ago.
Improve this question
I found this really cool website: https://somint.art/Blueprint
and I wonder how they create those really cool animations, like the text that moves everywhere when you hover the mouse.
Are they using CSS, or is it like a javascript or something else? I tried looking at his code but i don't see anything on the references.
Does anyone know?
this website is using pixijs library to get this animations.
you can check out it's examples from here

The best way of combining a picture with textboxes [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I've gotten a task which I feel I really don't know the best approach for.
So here I am, asking for your help and opinions.
I've been assigned to create a form on a webpage (ASP.NET WebForms) with multiple textboxes
where people should fill in different measures. The textboxes are to be placed on top of a schematic sketch over the measured object in question, hence the textboxes won't be positioned in a straight vertical alignment but can be
The way I've done it so far is by having it grouped as follows:
Div with the background image (relative positioning)
Div with measurement texbox (absolute positioning)
Now, while this works, is there another way of achieving this or is this the best way?
I haven't dabbled to much in HTML5 and maybe there are something that can be utilized there?
Your help and opinions are greatly appreciated.
Your approach is common practice and definitely what most people would advise. I don't think HTML 5 has anything new to offer here.

Replace some text with images Qt [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I would like to make a custom text entry widget in Qt in which certain groups of characters are automatically replaced by little images. For example, I might want every instance of "cow" to be automatically replaced by a little icon of a cow.
Any idea how to do that?
I'm working in python but solutions in C++ syntax are more than welcome :)
You can use QTextEdit widget for that.
From documentation :
QTextEdit can display images, lists and tables. If the text is too large to view within the text edit's viewport, scroll bars will appear. The text edit can load both plain text and HTML files (a subset of HTML 3.2 and 4).
The appropriate HTML construction to insert an image is <img src="path_to_image">. Just replace the words that should be converted to an image with that construction. To do this automatically, you can connect the textChanged() signal to a slot in which you replace key words with the HTML construction.
Also, you may find this usefull.

Multi image in one image file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
I'm fairly new in CSS web design. I found some website combine multi image in one image file. This is an example from Amazon :
http://g-ecx.images-amazon.com/images/G/01/x-locale/personalization/amznlike/amznlike_sprite_02._V196113939_.gif
And i really want to know how to do it in the best way. Is there any tool for combine image and get pixel position of each image to put them in CSS?
They are called CSS Sprites. You can google a lot of information. This techniques are used by most sites to reduce loading time. What you basically do is load one images in all the elements you want to load the images.
But you load them as their background images, thus enabling you to modifying their position. Thus making it possible to show different version of same images.
I dont want to tell everything so here is a futher read to get you started.

GUI internals, looking for turorials [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
There are tons of resources on how to program using the APIs of various widget toolkits but I can't seem to find much in the way of a tutorial on how to create widget toolkits themselves or how they work n detail. They are basically just black boxes to me right now.
There is some info on QT:
http://qt-project.org/wiki/Category:QtInternals
but it seems quite specific to QT and not geared towards general theory.
Could anyone point me to some resources?
Thanks for reading
There are powerpoint presentaion slides on the following link:
http://aplcenmp.apl.jhu.edu/~davids/605741/handouts/6_SWT_Programming.pdf
Also you may have a look on pdf given on the following link:
http://www.loria.fr/~dutech/DDZ/SWT.pdf
It would have been great to know which programming language you are using (or you'll use) to develop widgets.
Anyways,there is a link which shows the basic concepts behind widgets and also their creation:
http://star.pst.qub.ac.uk/idl/Widget_Programming_Concepts.html
Go through the tutorial/description to see if it meets your need.
Hope it'll help you.

Resources