Questions tagged [user-interface]

User Interface (UI) is the system through which people interact with a computer. This tag can be used for UI-related programming questions. Note that there's a separate Stack Exchange site for User Interfaces, Interactions with the Computer and User Experience design: https://ux.stackexchange.com.

User Interface (UI) is the system through which people interact with a computer. This tag can be used for UI-related programming questions.

Note that there's a separate Stack Exchange site for User Interfaces, and Interaction- and User Experience design.

References

56892 questions
12
votes
8 answers

how to give a line below the Textview in android

I want to add uderline which cover the fill parent width below the textview to show the textview look like the heading.
user5533329
12
votes
2 answers

How to access variables from different classes in tkinter?

I have been searching a lot and I still don't know how you access variables from different classes in python. In this case I want to access the variable self.v from PageOne class to PageTwo class. Here is my code. import tkinter as tk import…
Supachai Abusali
  • 143
  • 1
  • 1
  • 6
12
votes
6 answers

Writing a paint program à la MS Paint - how to interpolate between mouse move events?

I want to write a paint program in the style of MS Paint. For painting things on screen when the user moves the mouse, I have to wait for mouse move events and draw on the screen whenever I receive one. Apparently, mose move events are not sent very…
Heinrich Apfelmus
  • 11,034
  • 1
  • 39
  • 67
12
votes
6 answers

What gui toolkit should I use with Pygame?

I'm making a game that needs to be able to pop up gui elements within a pygame surface. This question isn't what I want because wxPython goes around the SDL surface, not inside it. So far I've only seen ocemp, pgu, and GooeyPy in this problem…
nmichaels
  • 49,466
  • 12
  • 107
  • 135
12
votes
3 answers

Android adding footer to ListView addFooterView()?

I have a ListView activity that needs a footer to the list of items so that you can click it and it would load more items into the list. The list is backed my an SimpleAdapter backed by a map of strings and before the adapter is set i do this…
Kman
  • 2,569
  • 5
  • 23
  • 27
12
votes
4 answers

Is WPF an extraordinary thing?

As long as I program, I always did it with MS-technologies. There was DOS, MFC , VB6, then .net with WinForms and now WPF. In all these technologies, the GUI-thing was always more or less the same, because it based on Win32 (except DOS). With WPF…
HCL
  • 36,053
  • 27
  • 163
  • 213
12
votes
2 answers

QT : Using State Machine for UI interactions?

Greetings, We are developing a scientific QT Application which detect the border of a cell.Please refer to following prototype snapshots. Now ,we are going to develop this as a opensource product with a good design and architecture.We reconed that…
Ashika Umanga Umagiliya
  • 8,988
  • 28
  • 102
  • 185
12
votes
5 answers

Design patterns for enabling user interface elements based on user permissions?

We have a web application and its front end is implemented with GWT/GXT. Users can belong to various groups and these groups can then have various permissions. The permissions are quite fine grained, for example comment_create, comment_edit,…
Petteri H
  • 11,779
  • 12
  • 64
  • 94
12
votes
4 answers

Starting Python and PyQt - Tutorials, Books, general approaches

After doing web development (php/js) for the last few years i thought it is about time to also have a look at something different. I thought it may be always good to have look of different areas in programming to understand some different approaches…
enricog
  • 4,226
  • 5
  • 35
  • 54
12
votes
3 answers

update matplotlib plot in tkinter GUI

I wanna update a matplotlib plot in a tkinter GUI. I tried to do so in the following code example. import matplotlib matplotlib.use('TkAgg') import numpy as np import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import…
user47091
  • 523
  • 2
  • 6
  • 16
12
votes
7 answers

iPhone CATextLayer doesn't show its text

I was simply trying to add a CATextlayer in an UIView layer. However, according to the following code, I only get the CATextlayer's background color to be displayed in the UIView, without any text. Just wonder what I missed to display the…
user268743
  • 343
  • 1
  • 4
  • 14
12
votes
1 answer

Meteor js templates rendered vs onRendered

After working fine with Template.name.rendered = function () { ..... } I changed this to: Template.name.onRendered(function(){ ..... }) but I don't have the same results and I don't find too much documentation about the differences, some one…
Zilev av
  • 491
  • 1
  • 7
  • 21
12
votes
4 answers

Difference between presentation layer and user-interface

What is the difference between a presentation layer and an user-interface?
Rookian
  • 19,841
  • 28
  • 110
  • 180
12
votes
1 answer

How to create `DOS/Unix` Like GUI

Assuming C/C++, I am wondering what kind of libraries should be used to create a DOS/Linux type of GUI? Please see the photos below (I do not know what is the official name of such a GUI as I never had to create one, but now I have to!). I am not…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
12
votes
6 answers

QApplication In Non-Main Thread

I need to exec() a QApplication in a thread that is not main (my GUIs must be plugins that can be dynamically loaded and unloaded at runtime, so I have no access to the main thread). Does anyone know of a (relatively) painless way to hack around…
rcv
  • 6,078
  • 9
  • 43
  • 63