gui

Python/Tkinter: Using custom mouse cursors under Windows?

Python 2.7/Windows: My understanding is that we can load custom mouse cursors using the cursor='@file.cur' syntax: widget = tkinter.Label( ..., cursor='@help.cur' ) Here's the traceback I receive: Traceback (most recent call last): File "<pyshell#82>", line 1, in <module> widget.config( cursor='@help.cur' ) File "C:\Python27\...

Why does a partially hidden JFrame not repaint properly on Linux when switching between virtual desktops

Hi, we have problems with Java 6 applications that do not properly refresh when switching virtual desktops. The problem so far has been reproduced on Fedora 11 and 13 with GNOME and Suse SLES 10 with KDE. I use the following test case to reproduce the problem: import java.awt.Color; import java.awt.EventQueue; import java.awt.event.Acti...

How to display a table (rows and columns of data) in an iPhone native app?

I want to display a table like the following in an iPhone app ` Recommendations History Current 1 Month Ago 2 Months Ago 3 Months Ago Strong Buy 29 27 27 26 Moderate Buy 5 4 4 4 Hold 3 4 3 3 Modera...

Text in Text Widget as a variable

Hi, so I've got this little Text widget with a scroll bar and I've got a question. How do I make text in this Text widget a variable ? If I made this text a variable I would be able to open a text file and edit it's text or save the text I've written, etc or maybe it's a wrong way that I'm approaching this, is there a better way to do t...

Python/Tkinter: Mouse drag a window without borders, eg. overridedirect(1)

Any suggestions on how one might create event bindings that would allow a user to mouse drag a window without borders, eg. a window created with overridedirect(1)? Use case: We would like to create a floating toolbar/palette window (without borders) that our users can drag around on their desktop. Here's where I'm at in my thinking (ps...

Can I manipulate a window(process) that I have not created?

Hi, I have this application that I haven't created and I don't have the source for. But it's really handy in handling and recording the time I've used on different projects. But it has this annoying pop-up that comes up that contains a window and some debug text I believe. It wasn't done by a professional, it was just a hobby project. Ev...

C# GUI Application, Another class from another thread updating the UI

Hello I've been researching on how to do this for about a week and I'm still not sure about the correct approach, in some examples I see the Thread class is used in others I see Invoke is used which has confused me a bid. I have a GUI program in c# which contains a textBox which will be used to give information to the user. The proble...

Menubuttons located in the middle of menubar

Hi, how do I put my menu bar buttons on menu bar's left ? Right now I pack() them with side=LEFT but still they're in the middle. Here's the code for my menu bar: http://pastebin.com/bgncELcb ...

C++ backend with C# frontend?

Hi guys, I have a project in which I'll have to process 100s if not 1000s of messages a second and process/plot this data on graphs accordingly (The user will search for a set of data in which the graph will be plotted in real time, not literally having to plot 1000s of values on a graph). I'm having trouble understanding using dlls fo...

Python/Tkinter: Are Tkinter StringVar (IntVar, etc) thread safe?

Are Tkinter StringVar (IntVar, FloatVar, etc) thread safe, eg. can a background thread read or write to these objects? Or must I use a Queue to pass information between my background thread and my main Tkinter GUI thread and have my main Tkinter thread pop the Queue and update the application's StringVar's accordingly? I know my applica...

GUI-design with SWT components using Matisse (from NetBeans) - Still possible? How?

I just stumbles upon a screencast that shows someone designing a GUI with Matisse consisting of SWT-Component: http://showmedo.com/videotutorials/video?name=javaDevijverJ2Spart3&amp;fromSeriesID=35 Does someone know how he integrated the SWT-Support into Matisse? Searching the web did not yield any useful infrmation so far. The screenc...

calling a method that changes nib properties using detachNewThreadSelector

I' m calling doSaveItems: like [NSThread detachNewThreadSelector:@selector(doSaveItems:) toTarget:self withObject:aObject]; doSaveItems: method has a code that references to one of my Outlets: [uiProgressLedIdle setHidden:YES]; of course I'm setting an autorelease pool inside this method. The problem is that [uiProgressLedIdle setH...

help with Handler class to update UI - Android

Hi Everyone, I am hoping you can help me: I need to update my ui for an android app and I'm trying to use the Handler class to do it, using http://developer.android.com/resources/articles/timed-ui-updates.html and the android developer resources "Common Task" for using Handlers as guides. Basically, I need something between the two - ...

Choosing colors for application

What is the best way to choose colors for LoB app, i need to style TreeView, dropdown's, textboxes and a pivot grid, so i need a bunch of colors, tried Kuler but it gives only 6 colors. So the question is how to do it without designer? ...

C# Multithread multiclass gui app, am I doing this right?

Hello I created the following project to show you guys how I plan to do things. But my main project will be bigger and will have multiple classes. I'm just trying to get this to work properly so I know I'm using good practice when coding. ok, lets begin :), so my form has a button called "button1" and a text box called "textBox1" and I...

What generic, flexible user interfaces are there which can relate to a variety of backends?

What I'm looking for is a type of user interface that has various generic elements which can be edited and arranged in a WYSIWYG manner by the user. Various backend models can be plugged in, and the user can then edit layouts of buttons, sliders, textual or graphic display elements, etc., and hook them up to control and display aspects ...

Free GUI framework to create a single exe?

I'm looking for free and easy GUI framework that let me create single exe without dependency (like .Net framework) and to be not GPL as a side note .. im using Qt and its great but i have to be LGPL to use it that means lots of fat dlls . is there any alternative? p.s how did the Dropbox client made of? i know its python but how did...

Silverlight 4: Pattern for displaying data with a bit of logic?

I'm building a wp7 app. I have a UserControl that displays a news article headline, teaser, and image. The entire class is pretty short: public partial class StoryControl : UserControl { public Story Story { get; private set; } public StoryControl() { InitializeComponent(); } internal StoryControl(Story st...

variable precision gui slider control

I'm looking for information of a ui slider control whos step size is influenced by the distance between the ui control, and the users mouse pointer. For example: You have a slider control which slides horizontally. It has a value range of 0 to 1000. It occupies about 100 pixels on the screen. So, when you slide the control using the mou...