gui

MATLAB system does not run applications

匿名 (未验证) 提交于 2019-12-03 02:43:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to interact with SUMO via MATLAB according to script here . At line 43, the MATLAB command is system(['sumo-gui -c ' '"' scenarioPath '"' ' --remote-port 8873 --start&']); Since I am using Ubuntu 16.04.1 LTS , I fixed scenarioPath . Now, this line is equal to system('sumo-gui -c "/path/to/SUMO/docs/tutorial/traci_tls/data/cross.sumocfg" --remote-port 8873 --start&'); When I run it nothing does happen ( ans=0 ) while when I test the command in bash command line the sumo-gui application starts. I believe the problem is even further

GUI becomes unresponsive after clicking the button using GTK+ in C

匿名 (未验证) 提交于 2019-12-03 02:43:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: #include <gtk/gtk.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> void display(GtkButton * b, gpointer data) { while(1) { printf("hurrah!"); } } void closeapp(GtkButton * b, gpointer data) { gtk_main_quit(); } int main(int argc,char *argv[]) { Widgets widg; printf("hello"); GtkBuilder *gtkBuilder; GtkWidget *window; gtk_init(&argc,&argv); gtkBuilder = gtk_builder_new(); gtk_builder_add_from_file(gtkBuilder,"hello_world.glade",NULL); window = GTK_WIDGET(gtk_builder_get_object(gtkBuilder,"mywindow")); widg.e1 =

Matlab GUI callback troubles

匿名 (未验证) 提交于 2019-12-03 02:42:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to make the uipanel change boarder colors while pressing and releasing mouse button on elsewhere except inputs and panel buttons. function [oldpropvalues,varargout]=DisableFigure(handlearray,prop,propvalue,varargin); oldpropvalues=get(handlearray,prop); %this IF is used to highlight the "modal" panel when anywhere outside it is pressed if length(varargin)==2 %these two are the old windowbutton functions which will be put back when the window is put back to normal. varargout{1}=get(varargin{1},'windowbuttondownfcn'); varargout{2}=get

Pass variable in Python module

匿名 (未验证) 提交于 2019-12-03 02:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am working with image processing project with Python. I need a good GUI, so I have generated a GUI using PAGE . Now I have three .py files: PAGE generated GUI class file. PAGE generated GUI Support file. My image processing file. PAGE generated GUI support file defines global veritable for storing GUI component values. PAGE generated GUISupport.py: #! /usr/bin/env python # # Support module generated by PAGE version 4.8.6 # In conjunction with Tcl version 8.6 # Nov 16, 2016 07:58:07 AM import sys try : from Tkinter import * except

Making an existing exe with gui into windows service

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a c# project that is more or less a exe file with a GUI ontop to make some settings. The projects purpose is to collect data either when the users forces a collect or when a time has been reached everyday that has been set by the user. There is also an installer project for this, all bundled in VS2010 for .NET 3.0. I would like to take part of my code to be used by windows service. The part that everyday at a given time should perform a collect data operation. So my question is, can I do this in the same project or should I create a

Why is a lambda expression breaking guice error handling when i try to start jetty?

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I face the following problem where i try to start jetty, i get the following exeption: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked process [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: java.lang.RuntimeException: com.google.inject.internal.util.$ComputationException: java.lang.ArrayIndexOutOfBoundsException: 51966 [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java

exporting classes to DLLs [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: How do I safely pass objects, especially STL objects, to and from a DLL? 4 answers hello im a bit confused with DLLs right now so i came here to ask where there are alot of pros in programming so ive got this class called GUI.h and the GUI.cpp class GUI { public: GUI(void); virtual ~GUI(); void Draw(float x,float y,float z); void Texture(int num); bool Shutdown(); void TextureON(int num); void TextureOFF(int num); private: GUIWeapon * Weapon; GUIWeaponA * Weapona; GUIArrow * Arrow; GUIHP * hp;

Using swing GUI to make a progress bar show up while downloading a file [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: JProgressBar wont update 3 answers I currently have a class that should show me a simple form while downloading a file. It is working, but the progress bar is not updating, and I can only see it once the download is finished. Can someone help me? import java.awt.FlowLayout; import java.io.*; import java.net.HttpURLConnection; import java.net.URL; import javax.swing.JFrame; import static javax.swing.JFrame.EXIT_ON_CLOSE; import javax.swing.JProgressBar; public class Downloader { public Downloader

how to build a GUI/HUD over top a glSurfaceView in android

匿名 (未验证) 提交于 2019-12-03 02:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have an glSurfaceView that looks like this: public class GLLayer extends GLSurfaceView implements SurfaceHolder . Callback , Camera . PreviewCallback , Renderer { private Context context ; private Circle cRing ; private CompassNeedle cNeedle ; private MarkerNorth mNorth ; private MarkerEast mEast ; private MarkerSouth mSouth ; private MarkerWest mWest ; private MarkerSouthWest mSWest ; private MarkerSouthEast mSEast ; private MarkerNorthWest mNWest ; private MarkerNorthEast mNEast ; private MarkerWest mGod ; private MarkerCustom

Matplotlib animation inside your own PyQt4 GUI

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm writing software in Python. I need to embed a Matplotlib time-animation into a self-made GUI. Here are some more details about them: 1. The GUI The GUI is written in Python as well, using the PyQt4 library. My GUI is not very different from the common GUIs you can find on the net. I just subclass QtGui.QMainWindow and add some buttons, a layout, ... 2. The animation The Matplotlib animation is based on the animation.TimedAnimation class. Here is the code for the animation: import numpy as np import matplotlib.pyplot as plt from