FAQ Database Discussion Community


Disabling tkinter ttk scale widget

python,user-interface,tkinter,ttk
I am trying to disable all of the (ttk) widgets in a frame, but it appears that the scale widget is giving me some trouble, as it throws the following exception: _tkinter.TclError: unknown option "-state" Some relevant code: import tkinter as tk from tkinter import ttk def disable_widgets(parent): for child...

Add Layouts on TabPane JavaFX

java,user-interface,javafx,tabpanel
i have a quick question. I want to build an UI with JavaFX. It should have tabs, each with some content. The problem that I have is, I dont know how to arrange the content in the tabs properly. Is there a possibility to add a Layout to the tabs?...

Python for Maya: “Object's name is not unique.” when calling object from class to build UI

python,user-interface,maya
The Problem: I don't get any syntax errors when i run the script up until i try to build the UI. Everything seems fine until i run the last 2 lines of code. I get the following error : Error: RuntimeError: file line 41: Object's name 'mst_txtfld_x_value' is not unique....

How to make app support Samsung's popup-view?

android,user-interface,popup
A user of my app complained that he can't open the app in a popup window (like this). When he tries to do so, a toast saying "This app cannot be shown in popup-view" appears. I couldn't find any documentation about this feature, specifically not about enabling it for your...

How to specify which axes to plot in a GUI

matlab,user-interface
I am new to GUI. But I have two axes in GUIDE GUI and wish to specify the one to plot a figure, but I can't find handles.axe1 anywhere. Can anyone help me with this?

Listview is not visible with other elements on top of it

android,user-interface,android-layout
I'm trying to create UI like the attached image. My xmal code below. There is one main issue that I"m running into. I understand that I can't embed a listview within a scrollview. The problem is, because of all the stuff on top of the listview, only a small portion...

Creating a generic function generating new objects from selected list of columns in a data frame

r,function,user-interface,shiny,shinyapps
I'm working on a simple ShinyApp that would enable end-users to interrogate the data with use of various filters. Some of the filters correspond to unique values in data frame columns which are created using the code corresponding to the example below: # Source sample data data(mtcars) # Put together...

How to Shuffle/Deal a deck of cards in GUI

java,user-interface,war,shuffle
Hello everyone I am currently making a GUI. It is going to be the card game called war what I am trying to do is split the deck randomly between the user and the computer. I have made three arrays one for you computer and the full deck and I...

How to share home directory for different users of GUI desktop application?

python,user-interface,ubuntu,permissions
I am developing notebook GUI application for field support people (i.e. there is only one user logged into system at any one time). There is only one user application program running started in User Defined Session (i.e. there is only one desktop format file in /usr/share/xsession/ starting GUI application on...

Display value of Y axis inside GUI plot

matlab,user-interface,plot
I have program code in matlab with GUI. I have there some axes object called "axes1" - there my plot is displayed (simple plot of x, y values). I want that after point on line there shows value of Y axis in that point. And best if it would display...

Create UI heavy element on another thread wpf

c#,wpf,multithreading,user-interface
This is the working code(but on UI thread): <ContentControl Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListView}}}" Focusable="True" HorizontalAlignment="Right" Content="{Binding Work}" > </ContentControl> This is the code I'm trying to make instead, but it doesn't work: (codebehind) InitializeComponent(); var thread = new Thread( () => { var a = new ContentControl {...

What sets the left file pane margin for Sublime Text 3 UI themes?

user-interface,themes,sublimetext3
I'm using the Soda Dark UI theme for Sublime Text 3 and I'd like to increae the left margin within the pane. It looks too tight, to me. What class(s) is used to define that margin? ...

Good Tutorials for iOS UI Design and Patterns [closed]

ios,user-interface,design
Can you please mention a good tutorial for iOS UI design? I have seen Apple documentations (https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/DesigningaUserInterface.html). But, it would be nice to learn from a step-by-step tutorial (example one for Android: http://www.vogella.com/tutorials/Android/article.html). Note: Pointers to other SO answers would also help....

How to make :hover more mobile friendly and accessible? [closed]

css,user-interface,mobile,sass,user-experience
I'm using SCSS to make a dropdown menu. Here is an excerpt of how it works: li { font: bold 12px/18px sans-serif; display: inline-block; margin-right: -4px; position: relative; padding: 15px 20px; background: $menuBG; color: $menuColor; cursor: pointer; transition: all 0.2s; &:hover { background: $hoverBG; color: $hoverColor; } Now what I'd...

Pure CSS Box Corner Decoration [closed]

html,css,user-interface
I was recently thinking about potentially interesting interface design ideas, and one idea that came to mind was a kind of futuristic looking box-based design in which elements would have thin and semi-transparent border lines with small opaque boxes at the corners. The problem with that for me was thinking...

How to scroll to a specific element in ScrollRect with Unity UI?

user-interface,unity3d,unity3d-gui
I built a registration form for a mobile game using Unity 5.1. To do that, I use Unity UI components: ScrollRect + Autolayout (Vertical layout) + Text (labels) + Input Field. This part works fine. But, when keyboard is opened, the selected field is under keyboard. Is there a way...

When building to mobile the size of fonts reduce and became very small

c#,user-interface,unity3d,uibutton,unityscript
Like I said in the title when i built to mobile the letter became too small. I think it is because phone has more pixel for his little screen. Well I tried to fix text by simply making text to images in photoshop. But how can I make InputFields text...

GUI - Linux - C - how click events are managed?

c,linux,user-interface,events
Context: Reading some GUI libraries on Linux 64. I've always used libraries (or done headless applications). Now, it is time to move on and complete my understanding. Question: I am not sure how the system knows when one clicks a button on a gui app. It seems that poll/select/epoll helps...

How to avoid user to click outside popup Dialog window using Qt and Python?

qt,user-interface,python-3.x,dialog,qt-creator
I created a Dialog window using Qt Creator and Python. I would like that Window stays on the top of my Gui AND avoid users to click outside that Dialog Until this dialog was closed.

Overlapping Items in WPF ItemsControl

c#,wpf,xaml,user-interface,datatemplate
I am having a problem with DataTemplates used in a WPF ItemsControl. I want to be able to "bring forward" any of the items in the list so that they are on top of everything else in the list, but haven't had any luck. Here's a simple example that illustrates...

Drawing on a panel but when adding it through another frame, nothing draws

java,user-interface,panel,draw
I'm working on a project and the general idea of my work is to do every part of it in a stand alone project, then add it when finished to the main project through libraries. My problem is - one part I have done was to perform a painting on...

Using the properties of the Matlab GUI components programatically

matlab,user-interface,matlab-guide
I am trying to make a simple test. I want to see if the String property of an edit component has a certain value. How do I use this property programatically? A syntax like if (edit.String=='Text') then... Seems not to work. Where am I mistaking?...

TextArea.continueCursor(TextArea.java:331) / ArrayIndexOutOfBoundsException: 16

user-interface,libgdx,thread-safety,indexoutofboundsexception
What could be the cause of this error? (Can't figure it out) Exception in thread "LWJGL Application" java.lang.ArrayIndexOutOfBoundsException: 16 at com.badlogic.gdx.scenes.scene2d.ui.TextArea.continueCursor(TextArea.java:331) at com.badlogic.gdx.scenes.scene2d.ui.TextArea.calculateOffsets(TextArea.java:278) at com.badlogic.gdx.scenes.scene2d.ui.TextField.draw(TextField.java:283) at com.badlogic.gdx.scenes.scene2d.Group.drawChildren(Group.java:124) at com.badlogic.gdx.scenes.scene2d.Group.draw(Group.java:58) at...

Windows 10 xaml Controls Centre Screen

xaml,user-interface,windows-universal,windows-10
I'm working on an app for windows 10. I've previously worked on a handful of Windows 7 applications and I'm trying to get use to the many differences now. I'm trying my luck at a universal app, and I'm wanting to centre a handful of controls so that no matter...

How to tell Users that a Tooltip lies behind a Text/Textbox/Image, etc.?

windows,user-interface,text,tooltip,user-experience
In my U.I. I have a normal text headline that covers a block of checkboxes but without further information I'm scared of Users not knowing what to do with the window. So my idea was to put a tooltip in the headline to give Users information about the funktion of...

Implementing callback function for dialog-based application

c++,c,visual-studio,user-interface,winapi
I was reading a very old tutorial on how to create a dialog-based GUI application in Visual C++ (source - in portuguese). Based on my weak knowledge on WinAPI programming I decided to modify the proposed code mainly to achieve two things: 1) Consistency with Unicode programming standard (using wWinMain...

Python MVC style GUI Temperature Converter

python,user-interface,python-3.x,model-view-controller,tkinter
#The view (GuiTest.py) import tkinter import Controller class MyFrame(tkinter.Frame): def __init__(self, controller): tkinter.Frame.__init__(self) self.pack() self.controller = controller #Output Label self.outputLabel = tkinter.Label(self) self.outputLabel["text"] = ("") self.outputLabel.pack({"side":"right"}) #Entry Space self.entrySpace = tkinter.Entry(self) self.entrySpace["text"] = ("") self.entrySpace.pack({"side":"left"}) #two convert buttons self.convertButton=tkinter.Button(self) self.convertButton["text"]= "Fahrenheit to...

What is wrong with my GUI program [on hold]

java,user-interface
import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.geom.Point2D; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; public class Car { private int xLeft; private int yTop; public Car(int x, int y){ xLeft =x; yTop=y; } public void draw(Graphics2D g2){ Rectangle body = new Rectangle(xLeft, yTop+10, 60, 10); Ellipse2D.Double frontTire= new Ellipse2D.Double(xLeft+10, yTop+20, 10, 10); Ellipse2D.Double rearTire=...

JButton toggle method not working as expected

java,swing,user-interface,jbutton
Here's what I'm trying to do: Create a JButton, and when clicked, its setText() will change to Happy, and then when clicked again, its setText() will change to Sad. Basically, I want it to toggle between Happy and Sad when clicked. (Sorry for the awful explanation) The issue is that...

wxWidgets with AUI: OpenGL render loop method and wxPaintEvent

c++,user-interface,opengl,wxwidgets
The method I traditionally use of drawing to an OpenGL canvas with wxWidgets is to trigger a 30 hertz timed refresh() from the current OpenGL canvas, which then generates a "wxEVT_PAINT", which I can propogate out to the rest of the frame. I also bind to the wxEVT_PAINT and call...

Plotting image and points on Matlab GUI via update function

image,matlab,user-interface,graph,plot
excuse my noobness, but this is my first post. i generated this gui in matlab, and i want to plot an image on one of the axis from an update function. i know in Matlab you can just do something like image(img) hold on plot(x1,z1) hold off but how can...

Full Screen overlay without back/home/menu button

android,user-interface
I have this function to show a fullscreen black overlay on my activity. To mimic screen off behaviour. private void showBlackOverlay() { Dialog dialog = new Dialog(this, android.R.style.Theme_Black_NoTitleBar_Fullscreen); dialog.show(); } But still back/home/menu buttons are visible. How can I hide them? I need it to work on older versions of...

How do I properly change the values of a Radiobutton?

python,user-interface,tkinter,radio-button
I have created a IntVar() this.v. When this.v = 1, my elif statement is true, which should not be the case. What have I done wrong? When I print(this.v.get()) the value returned is 1. (import tkinter) this.v = IntVar() this.button1 = Radiobutton(this.root,text = "Small Boxes First",variable = this.v,value = 1)...

Swing wait()/notifyAll()

java,multithreading,swing,user-interface,jframe
I am developing a Java application where when a button in the GUI is pressed, the user can click anywhere on the screen to record the x and y coordinates where they clicked.This is done by putting an undecorated, partly transparent JFrame over the entire screen that listens for a...

Creating a spotify style slider [closed]

javascript,user-interface
How would one go about implementing a slider like this on a website? Is there an out of the box solution using something like jQuery or even just css? What is this type of slider called? ...

From prototype to real APP

ios,user-interface,prototype,converter
I am a starter now developing my own IOS APP, but ran into the trouble: I really want to work out some cool UI, and do find lots of tools that will do exactly what I am thinking, however they seems to only give a prototype design. I am wondering...

pyqt gui locked when calling cython function from QThread.run

python,user-interface,pyqt,cython,qthread
In PyQt4 I want to execute code with no lock gui. I use QThread and emit signal for gui update. But if i call cython function in QThread.run gui will be locked. class Runner(QtCore.QThread): iter = QtCore.pyqtSignal(int) def __init__(self): QtCore.QThread.__init__(self) def do_something(self): beg = time.time() s = 0.0 while time.time()...

How to determine if gui is completely constructed in java?

java,swing,user-interface,progress-bar
I want to show a new JFrame when a button is clicked and also I'm calling another method and this method needs elements in that JFrame, but before completion of constructing gui my method is runnig. is there any way to determine when all elements of gui are constructed? here...

adding elements to arraylist using a loop

java,user-interface,arraylist
My problem is very simple but i can't find the way to solve it. Basically i want to create an Arraylist and add elements to it using a loop(up to as many elements as i want). i'm using the netbeans gui, and whenever i press a button "add" i want...

Making a Simple RPG- Creating a new JFrame

java,swing,user-interface,jframe,window
I am making a 4-class RPG. It has Player class which allows us to move the player. It has Board class which is for the map in the game. There is a Battle class which is for the battle phase. RPG is the main class responsible for running the game....

rounded corner to UITextField Xcode

ios,xcode,user-interface,user-experience
I have two textfield (username & password) and want to make top rounded corner for username and bottom rounded corner for password as per attachment. ...

How can add a value on a figure using uicontrol?

matlab,user-interface
I read and show a signal, but I would like that my program ask to the user the sampling frequency in the same figure, not in the command windows using GUI's. After that I want to get that value for my program Any help would be aprreciated!!!...

How to change Eclipse IDE GUI icons?

eclipse,user-interface,icons
Elipse icons are ugly. Fact! I would like to replace the icons with more flat, monochromatic and minimalist icons, but I can't find documentation on how to change icons from Eclipse's user interface. How could I do this? It's needed to recompile eclipse?...

How do I convert point to local coordinates?

c#,user-interface,button,unity3d
when a user taps a button I want the tap to be ignored if a transparent pixel is hit and the button beneath it should receive the tap instead. I can do this sort of behaviour in objective c within a few minutes, however, trying to do it in Unity...

How to convert excel data to json at frontend side

excel,user-interface
I want to convert some excel data to JSON. Plan is to get my excel file from D drive, read data and make some UI for this. Can any one please help me out? Data is like this :- country year 1 2 3 4 Netherlands 1970 3603 4330 5080...

How to keep GridBagLayout from changing the size of a button

java,swing,user-interface,layout-manager
In my FlashCardPanel class, I have a subpanel,LabelPanel, with a Grid Bag Layout. It consists of a constructor with an edit button, a button to "flip" the card, and the label to display the term/definition. My problem is that every time I click my "Flip" Button to display the definition...

MessageBox won't work when handling WM_DESTROY event from DialogBox

c,user-interface,winapi
While elaborating an answer for another question (by myself), I've come up with the idea of using a MessageBox to report the result of my dialog box. It is a WinAPI modal dialog box created with the DialogBox() function. However, I noticed that handling WM_DESTROY in the dialog's procedure function...

tablelist label color while mouse hovers

user-interface,tcl,tk
I've configured the background color of some lables of my tablelist by using the columnconfigure $ColumnIndex -labelbgmethod. However, the background color changes while the mouse hovers over the labels. I couldn't find any -activebackground method and I wish the background color will stay the same even when the mouse hovers...

Change background color of viewcontroller but not top area with clock

ios,user-interface,uiviewcontroller
I want to make my whole ViewController grey except I want the top area where it shows CARRIER and the current time to remain white. Is the only way just to stick a View that covers everything except that area, and set it to grey, or is there some way...

QTabWidget tab displays nothing in one of the tabs

c++,qt,user-interface,qwidget,qtablewidget
I am trying to create a gui that has a QTabWidget with multiple tabs. As a preliminary test I have created one that has two tabs using the same layouts. The first tab (Page 1) is blank but then the second one shows the QTableView I created. Both tabs were...

Customisable iOS Interface

ios,iphone,xcode,user-interface,customization
I am currently developing an iOS app that can be used by different clients keeping pretty much the same interface for all of them. I would like to make this interface somehow “customisable” without having to change the storyboard for every client but I am not sure how to do...

How to access a button's parent in Tkinter without writing class?

python,user-interface,tkinter,event-driven
Is there any way to find a widget's parent (specifically button) without saving the parent in an object attribute? but = Button(main_window, text = "close window!") but.bind("<Button-1>", btn_handler) def btn_handler(e): e.parent().destroy() # I need something like this! # e.parent() ==>> main_window # without writing class and defining self.parent ... I...

QGraphicsScene on a QMainWindow

python,user-interface,pyqt4,qgraphicsscene
Still new to Python so I'm trying to get a QGraphicsScene to be inside a a QMainWindow. Right now the way I have it coded is that two windows will appear but I only want one window to appear with the QGraphicsScene "inside" the QMainWindow. Here is my code: import...

Unable to call validatecommand in python 2.7 Tkinter GUI

python,python-2.7,user-interface,tkinter
I am creating a GUI in Python 2.7 using Tkinter and am now trying to implement a value check for my entry boxes using validatecommand. When I run the GUI, it runs the check function because it is 'forced' but I also want it to call the check function when...

Java JFrame: Update GUI during an event (not within a timer)

java,swing,user-interface,repaint,actionevent
Been trying at this a little while, going no where fast. I have elements in a JFrame that I want to update/toggle viability for when I click my play button (which triggers the ActionEvent). However, these only seem to be updating after the actionPerformed method is finished. This is what...

Get HTML elements in GWT

html,user-interface,gwt,uibinder
Like there is a getElementById() in JavaScript to get a HTML tag and in Android to attach to UI Element , is there a way in GWT do all the stylings in basic HTML and CSS and just use GWT for event handling ? In other words, If I have...

Qt Cannot access *ui pointer from inheriting class

c++,qt,user-interface,inheritance,objective-c++
I am trying to write an application where I would have a generic dialog window and specific dialog windows that would inherit some basic functionalities from the generic one. I am not sure this is the best approach for this, but this is how I did it (The CGenericProject class...

cmd/DOS window opens with GUI created with py2exe

python,user-interface,cmd,py2exe,pyqt5
I have created a GUI using PyQt5. The aim of the GUI is to pass some input data (images, shapefiles etc) and to use them in softwares (GIS mostly). To launch the GIS I use the subprocess.Popen command line. I have used py2exe to create my app and my problem...

Updating UI From a background thread on iOS

ios,user-interface,background,thread-safety
On iOS, its well documented that the UI should never be updated from a background thread. Rather the main thread should be the sole interface to update the UI. My Question is why? Is it because UIControls are not thread safe and hence there is always the possibility of main...

Updating ac value for Qtimer

qt,user-interface,adc
I am using qt tool for mini2440. I make a gui for i2c adc having starti2c and stopi2c. All things are working well: it reads value of signal when starti2c button press, but I want this value to be updated. I know that Qtimer can be used, but how can...

java null pointer exception JMenuBar [duplicate]

java,eclipse,swing,user-interface,nullpointerexception
This question already has an answer here: What is a Null Pointer Exception, and how do I fix it? 12 answers Im stuck today with a java error on an eclipse 3.8 platform. I try to generate a simple MenuBar on a JFrame. The JMenuBar contains the JMenu("Help") and...

Using front end frameworks with a Wordpress site?

wordpress,user-interface,web,wordpress-theming
I've been tasked with modifying the frond end of a Wordpress site, which is something I have not done before. I was first thinking of using Handlebars an Bootstrap, but I'm not even sure that will even work with the Wordpress framework. If those don't work, what would be a...

How to make javafx label fit text?

user-interface,javafx
I have a dialog window for adding records to the table. As far as I don't want to create for example 10 fxml files for each table I have only one: <?import javafx.geometry.*?> <?import javafx.scene.control.*?> <?import java.lang.*?> <?import javafx.scene.layout.*?> <?import com.sun.javafx.scene.control.skin.IntegerField?> <?import javafx.scene.layout.ColumnConstraints?> <GridPane alignment="BASELINE_CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity"...

Android - How to check for button click in a custom alert dialog box?

java,android,user-interface,android-dialog,flat
I've got two buttons: Share, Continue. Both of them are created in a new XML file because I wanted to keep my application with a nice flat Windows 8/10 looking GUI. I am able to display the dialog message, but the problem I am facing is, how can I check...

simple java dialog to choose option

java,user-interface
I am looking for a one-liner that spawns a window and allows me to pick (graphically, e.g. using a combobox) one of several options. I can create a MessageBox with the following code, but that does not allow interaction: JOptionPane.showMessageDialog(null, "read this", "title", JOptionPane.WARNING_MESSAGE); The dialog should look (somewhat) like...

Form controls not showing

c#,forms,winforms,user-interface,user-controls
I'm making a console application that shows a form. I created the form from scratch. When I run the program, the form shows, but the controls I added don't show. My code: using System; using System.Windows.Forms; using System.Drawing; namespace form { public class main { public static void Main() {...

A movie clip above a simple button makes it unresponsive

actionscript-3,user-interface,flash
I have designed a menu in Flash CC which consists of several cloned buttons and an MC containing the text that is supposed to stay above the buttons. Each time a user switches the menu's page, AS commands the clip to switch to appropriate frames, therefore changing the text above...

(Java)How to change picture(War Card Game)

java,swing,user-interface,war,playing-cards
Ok what im trying to do is make a image called hidden and it will be a card face down. Now I want to make it so the image will change to a face up card and what i tried to do was make a image for six cards three...

try/catch block not working in actionlistener

java,user-interface,try-catch,actionlistener,jtextfield
I am working on 2 programs for school, one to take contact info and save it to a text file and the other is to read from the text file. All works perfectly but I have to add a try/catch block the program that takes input so that it would...

How do I create a RadioButton in my GUI in python?

python,user-interface,variables,radio-button
I've been trying to create a simple RadioButton, but the issue is that both buttons already show up as clicked (they have the black circle inside of them when the GUI starts up). How would I fix this? this.myVar = StringVar() this.button1 = Radiobutton(this.root,text = "Small Boxes First",variable = this.myVar)...

Moving a tab group into a tab group

matlab,user-interface
I am working on making my own adaptive gui builder in matlab, and I stumbled across a really strange bug in matlab. I found that you cannot hide a uipanel that contains a uitabgroup, then move it into a separate uitab. Here's the shortest snippet I could create: a =...

Converting from Pixel Coordinates to UI Coordinates in Unity

user-interface,unity3d
Does anyone know how to convert from Pixel Coordinates to UI Coordinates and vice-versa in Unity? Let's say for example I want to click somewhere on the screen with the mouse, and a UI Image to be at that click position. If I do this won't work: Image img =...

Disable cmd opening from GUI (PyQt)

python,user-interface,cmd,pyqt,pyqt5
I have a GUI (created with PyQt5 and py2exe). This GUI takes input data (shp, images..) and uses them as parameters in softwares (ie FME). Whenever I launch a task on a software through the GUi, a cmd opens. To launch the softwares, I use subprocess.Popen in my script with...

Unity 5.1 and OnGUI()

user-interface,unity3d
I had the following simple code working, before upgrading to Unity 5 but now nothing happens when I press the Space key! void OnGUI() { if ( Input.GetKey( KeyCode.Escape ) ) { GUILayout.BeginArea( new Rect(50, 50, 100, 100) ); GUILayout.Button("Exiting!"); GUILayout.EndArea(); } } The script is attached to an empty...

How to change on_press “animation” of Tkinter button in python

python,user-interface,tkinter,customization
i have a taskbar-like Frame, which contains custom Buttons with images. But everytime i click on this button, Tkinter displaced the button 1px to the right/buttom. Is it possible to override this behaviour? Or do i have to derived from Tkinter.Label instead of Tkinter.Button ? edit: Adding some code: import...

Efficiently design method to construct a Java GUI?

java,swing,user-interface
This is for a school project where we implement a GUI for our previously made system, problem is our teacher only taught us JFrame. So in the end, what I have is, a JFrame for the MainScreen, and when I click a button to go the the OtherScreen, it will...

Use GUI displayed results of SQL query vs new queries?

sql,performance,user-interface,maintainability
I am developing a program, with a database and a GUI which displays parts of the database. Let's suppose I have a textblock which contains data from the database (found with a query). If I want to use the value of this textblock somewhere else in the program, should I...

How to put an image on another image in python, using ImageTk?

python,user-interface,tkinter
I want to put an image in front of another one, then use this combined image as a button's background image in Tkinter. How can I do it? I am free to import Tkimage, Image. Clarify: I want to stick this on the center of this so that something like...

What exactly does the call to the SwingUtilities.invokeLater() method into the main class that perform a Swing application?

java,swing,user-interface,swingutilities,java-threads
I am pretty new in Swing and I have the following doubt about this main class that start a Swing application founded on an tutorial project: package com.caveofprogramming.designpatterns.demo1; import javax.swing.SwingUtilities; import com.caveofprogramming.designpatterns.demo1.controller.Controller; import com.caveofprogramming.designpatterns.demo1.model.Model; import com.caveofprogramming.designpatterns.demo1.view.View; public class Application { public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { @Override...

Java - Enforce TextField Format - UX - 00:00:00;00

java,regex,user-interface
Please see below image of the UI of my current application Currently, I am enforcing Data Format of the text fields in the back end. If the RegEx does match (00:00:00;00), it will throw an error. My question is from a UX perspective, is it possible to make the input...

What's the difference between a UIStackView And A UICollectionView in Xcode 7?

swift,user-interface,uicollectionview,ios9,uistackview
What's the difference between a UIHorizontalStackView and a Collection View(Also Vertical stackview)? Can't a collectionView be horizontal and vertical? Why would people use both? What does a UIStackView do that a Collection View can't?...

Javafx Tableview dont show data of ObservableList

user-interface,javafx
i have a Problem mit the Tableview in JavaFX. I know there are some other posts in the forum, but i checked them and tried to use the solutions, but nothing work for me ... I have 3 Classes. One Version class, the data model. The Class which populats the...

python's tkinter button color change is not getting updated

python,user-interface,tkinter
I am writing a small program in which when a button is clicked the color of a label changes to green ( by default it was red ) and after sometime it reverts back to red. using time.sleep() doesn't work. The code that I have already tried is: def change():...

How can I print elements from an imported text file in Python?

python,user-interface
Okay, so as my school assignment I have been told to import a txt file and store it inside a list, I have done this correctly, and the next step is to print the items in a 3x3 grid. I have come up with a solution however it doesn't seem...

tkinter: progress list not updating

osx,python-2.7,user-interface,tkinter,listbox
I have great difficulty boiling down my problem into a fundamental one, so my apologies if this is already treated in another question. My problem lies in providing progress feedback to the user. The basic system is used to import files, analyze them (with an external function) and in the...

Android : Creating GUI programmatically at run time in java

java,android,user-interface,dynamic
I have to create number of buttons and textbox, etc. depending upon a certain number. For ex: if the number = 5, I need to create 5 buttons, and if its value is 10, I need to create 10 buttons. To achieve such a functionality, the conventional xml GUI won't...

Adding GUI controls dynamically

c#,.net,winforms,user-interface
I am facing a problem adding a panel, two buttons in a scrollable (through another panel) group box. I am not good in adding UI elements without the designer, so naturally, I've got a cluttered interface that doesn't work the way intended. Here is the code: private void client_DownloadFileCompleted(object sender,...

calling a method to restart if a condition is met without using a loop

java,user-interface,oop,jtextfield,jtextarea
I am working on a payroll program for school. I only two weeks into working with GUIs so my skills have a lot of room for growth. Everything works fine except for this method. I am trying to get the method to clear the JTextAreas if the number entered is...

close sub-window without closing main window PyGTK in python

python,user-interface,pygtk
I am creating a gui in python with PyGtk and I would like to create a sub-window that branches off from my main window but unlike a dialog the user will be able to interact with the main window without having to close the sub-window. The following code was demonstrated...

Using transparent images and repeat

css,user-interface
I have a tab and would like a custom image to underline part of the text in the tab. I have 3 images, left image transparent for 14px and then 1 pixel wide of colour, a right image that is the reverse of this, and a 1 px wide image...

How can i create the basics of a GUI? [closed]

java,user-interface,design
I have this code sample : import javax.swing.*; import java.awt.*; public class MainApp extends JFrame { public static void main(String[] args) { } } I want to create a window with specified resolution, give a title and create the environment for other GUI methods. How can i do that ?...

iOS UI causes crash after pushing/popping second view controller

ios,objective-c,user-interface,uinavigationcontroller
In my iOS app, the entire user interface is coded programmatically, meaning no xibs or storyboards. All works well until I add another view controller via a UINavigationController. The first view controller works well, and when the second view controller is pushed, it works well too. But after the second...

MATLAB: How to make camera light follow 3D Rotation

matlab,user-interface,3d,rotation,lighting
I have come into a problem recently when trying to rotate 3D objects. I am building a GUI and I have a separate figure where an object is plotted. In the figure, I allow the user to use MATLAB's built-in rotate button to move the object around. However, I am...

Perl Command Line Interpreter crashing on exit

perl,user-interface,crash,interpreter,tkx
I have an issue where exiting a Perl Tkx script causes the Perl Command Line Interpreter to crash. Ex: use strict; use warnings; use Tkx; my $mw = Tkx::widget->new('.'); my $button = $mw->new_ttk__button(-text => "Hello", -command => \&main); Tkx::pack($button); Tkx::MainLoop; sub main { print "TESTING\n"; exit 0; } This code...

Java GUI - NOT Swing

java,user-interface
I need a new way to create the graphical user interface of my application. I don't want to use Swing. I'm looking for something that looks a little different. Can you recommend me some other way of creating it, please?

UISpec4J tests in Eclipse are not found

java,eclipse,user-interface,testing,uispec4j
I am trying to run tests using the UISpec4J library, but Eclipse says it can not find them. I have tried restarting Eclipse, cleaning the project, etc. The class gives no errors and I have followed the examples given on the website. package com.health.gui; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test;...

Variabile behaving differently in debugging vs. non-debugging in Matlab?

matlab,user-interface,matlab-guide
I work with the GUI from Matlab R2014a. I want to see if there is something written in an edit control. If it is, then the program does something. If it is not, then it does something else. The code that I wrote is this (in the KeyPressFcn callback): h1=findobj('Tag','btnOK1');...

Open a file from user input in python 2.7

python,python-2.7,user-interface,user-input
How would I open a file by asking for user input? After raw_input("PROMPT") requests filename.txt from the user, I get the error code: TypeError: coercing to Unicode: need string or buffer, file found which tells me I need to convert the user input to a string, or format it a...

Android, Unexpected button left and right paddings

android,user-interface
I want to make a button, where left right top and bottom paddings will be same. But I get something like this: Here is a layout: <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/people_number_label" android:text="@string/number_of_people" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <Button android:id="@+id/people_number" android:layout_toRightOf="@+id/people_number_label" android:layout_width="wrap_content"...

Using Py2app with a GUI from QT Creator

python,qt,user-interface,pyqt,py2app
I created a GUI in QT Creatro and stored this as a *.ui file. Using PyQT I made a GUI that works fine when it is launched as $ python pyapp.py In order to build this app into something that can be executed by double clicking on it, I used...