widget

How to make label and box align next to each other in shiny::numericInput?

一世执手 提交于 2020-01-30 04:55:21
问题 Is it possible to create a numericInput() for shiny where box is next to the label (instead of below it which is the default). Here is a simple example: library(shiny) ui <- shinyUI(fluidPage( titlePanel("Shiny with lots of numericInput()"), sidebarLayout( sidebarPanel( fluidRow( column(6, numericInput("a1", label = "A1", value = 1)), column(6, numericInput("b1", label = "B1", value = 1)) ), fluidRow( column(6, numericInput("a2", label = "A2", value = 2)), column(6, numericInput("b2", label =

RemoteViewFactory onDataSetChanged() only called once per notifyAppWidgetViewDataChanged() [duplicate]

无人久伴 提交于 2020-01-30 02:54:14
问题 This question already has answers here : onGetViewFactory only called once for multiple widgets (2 answers) Closed 2 years ago . I'm building a widget to load a list of ingredients per recipe. My goal is to be able to have multiple instances of the widget and have their ingredient-list (ListView) loaded/updated independently. I've setup a configuration activity for user to select the recipe. After configuration and populating the remoteViews and making the RemoteAdapter for my list of

Using intent for sending SMS on Button click from widget

末鹿安然 提交于 2020-01-25 12:29:05
问题 Ok this is code for my widget. I have two buttons, that are making calls when clicking on them. I want to implement three more buttons for sending SMS, but i can't implement intent for that... I my main app I use smsmanager function .... import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.widget.RemoteViews; public class

Issues with javascript properly loading and seeing everything

不打扰是莪最后的温柔 提交于 2020-01-25 12:23:25
问题 Ok, so I have a form that loads from a request through a zip code widget from another page. THe widget populates two of the form fields immediately, on submit, on the new page. My problem is that I have a pretty complicated piece of flash on there as well that has ONE main issue. My flash is essentially a pie chart that lights up on mouseOver events and onClick events in the form check boxes. It works like it should except for the fact that on initially loading the page the javascript will

netbeans: how to add widgets to QT variable

守給你的承諾、 提交于 2020-01-25 10:47:26
问题 I have seen posts in which people say that Qt 5 projects are now required to add widgets to QT variable and this is why simple Qt example in netbeans doesn't work: cannot include QtGui/QApplication -> no such file or directory. how to add this to QT variable? do I have to do it for each project in IDE or in .bashrc or somehowe? 回答1: the problem was because of link error. it was because it didn't link with QtWidgets. g++ -m64 -Wl,-rpath,/opt/Qt5.0.1/5.0.1/gcc_64 -Wl,-rpath,/opt/Qt5.0.1/5.0.1

Can't make tkinter checkbutton work normally when running as script

筅森魡賤 提交于 2020-01-25 07:08:05
问题 I defined a tkinter checkbutton widget to create check boxes based on a user defined list and return a new list including the selected elements. It works as expected when I run it directly on IPython console (I use Spyder3 most of the time). It also works if I save the function as a Python script and call it as a module's function in Python console. However, if I run the script containing this function, it behaves weird that all the change of those check buttons will not reflect to the real

How to create an “array” of multiple tkinter Scale widgets with Python?

喜你入骨 提交于 2020-01-24 20:31:07
问题 I am trying to create a GUI using Python 3.2.3 and the tkinter module. I need an "array" of Scale widgets but cannot for the life of me figure out how to return the values except by creating the Scale widgets one at a time and having a separate function for each one called by its command keyword argument passing the var . I can loop the widget creation bit and increment the row and column parameters as necessary but can't figure out how to retrieve the values of the Scale widgets. In "Basic"

How do I retrieve shared preferences data in a Widget Service class without passing in incorrect default values or getting null pointer errors?

我只是一个虾纸丫 提交于 2020-01-24 17:05:25
问题 I am trying to run a widget in my app. The widget data (sync frequency, username, etc) is decided in the WidgetConfig class. It then opens a widget provider, which creates the widget, and lastly a service updates the views and makes the server calls to update data. Here is some of my code: //First Widget config is called: public class WidgetConfig extends Activity{ //Stuff happens here to get data from EditTexts and spinners and converts //them to strings. //Eventually a button is pressed

How do I retrieve shared preferences data in a Widget Service class without passing in incorrect default values or getting null pointer errors?

心不动则不痛 提交于 2020-01-24 17:05:14
问题 I am trying to run a widget in my app. The widget data (sync frequency, username, etc) is decided in the WidgetConfig class. It then opens a widget provider, which creates the widget, and lastly a service updates the views and makes the server calls to update data. Here is some of my code: //First Widget config is called: public class WidgetConfig extends Activity{ //Stuff happens here to get data from EditTexts and spinners and converts //them to strings. //Eventually a button is pressed

How to prevent closing the menu after a select?

我是研究僧i 提交于 2020-01-24 11:07:39
问题 I am using the jQuery Autocomplete widget and, inspired by this question in order to prevent closing the menu after select , I came up with this code: $(#input_field).autocomplete({ select : function(event, ui) { // I also tried to run 'ui.item.data( "item.autocomplete" );' and it happens // the same thing (keep reading for more information). ui.item.option.selected = false; }, ... }); It works: the menu is not closed after select. However, I get the following error (in the Firebug console):