FAQ Database Discussion Community


Get location of a widget to allow drawing a line from widget a to b

java,widget,swt
Hi I am working on adding a link between 2 classes on a class diagram to show their relation, the class diagram view allows for adding as many classes as the user wants. This is being done in SWT and the classes (which are a square button) are added dynamically...

Django-dashing creating your own widgets

javascript,python,django,widget
Ive been trying to create a custom widget for my dashboard which runs using the django-dashing framework https://github.com/talpor/django-dashing http://django-dashing.readthedocs.org/en/latest/ My CustomWidget is defined like so: CustomWidget.py: from dashing.widgets import Widget class CustomWidget(Widget): title = '' more_info = '' updated_at = '' detail = '' value = '' def get_title(self): return...

how to localize today extensions widget?

ios,ios8,widget,ios8-today-widget,today-extension
our application has been support mutli region and languages,when i development today extensions widget and read App Extension Programming Guide still can't found a localize soluction. even if i created the Localize.strings file like a normal xcode project,define Localize.String File like: "scene_people_liked"="%d people like"; and use : #define NSLocalizedString(key, comment)...

TKinter: Scrollable Canvas, Expandable Widgets, and Pack

python,tkinter,widget,scrollable
I am creating a table using Labels laid out as a grid within a Frame. I'd like to embed this Frame in a scrollable canvas, and I'd like the Labels to expand to fill the horizontal space while maintaining vertical scrolling capability. To see what I am trying to do,...

“Waiting to attach” issue in iOS 8 with Today Extensions

ios,widget,today-extension
I've got a serious issue and can't figure out where is the problem ! First this question has already been answered in two other threads : iOS 8 beta 5 Today view extension (widget) stuck at Waiting to Attach BUT, my problem is different : I've got 10 widgets, and...

Hide Widget based on condition using Widget Logic Plugin

wordpress,plugins,widget
My website (http://www.chicagokaraokenight.com/wordpress) is a karaoke directory where bars can list karaoke nights for free OR upgrade to a premium or featured premium listing (paid packages) to receive a more robust profile. As part of the benefit to upgrading to a paid package, I'd like to have some widgets disappear...

wxpython How to change the values of widgets in other panel

widget,wxpython,panel
My frame was split in three panels, In PanelTwo, There is a TextCtrl, In PanelThree , There is a TextCtrl too, When I input something in the TextCtrl of PanelTwo, I need change the value of the TextCtrl in PanelThree, How to do it? # -*- coding: utf-8 -*- import...

iOS today widget only shows up while debugging

ios,xcode,swift,widget,ios8-today-widget
I am developing an app with swift using a today widget for notification center. The widget works: when using the simulator when starting the widget separately using xcode The widget does not work when starting the main app using xcode on my iPhone 6. It appears but is empty, only...

How to access id/widget of different class from a kivy file (.kv)?

python,events,button,widget,kivy
What I want to know? If button with id: button_b (Get_Boys class) is released, then Label with id: label_g (Get_Girls class) must change. If Button with id: button_b (Get_Boys class) is pressed, then Label with id: root_lbl (Get_People class) must change. If Button with id: root_btn (Get_People class) is released,...

Trying to align two columns in a specific way using HTML within a Wordpress Widget

html,css,wordpress,widget
.::Edit::. Fixed Broken Images. -- I've been trying to align this for a few days now, and I simply don't have the know how to accomplish it. I photoshopped what I am trying to get this table to look like, but when I try to create a table, I either...

Kivy: Turning an App into a widget

python,widget,kivy
I have built a Kivy GUI using the 'App' class that is designed to load a file using a file chooser and make it into a list. I have now learned that my whole chunk of code needs to be converted to a widget so that it can be integrated...

Kivy Widget does not accepts properties and commands

python,widget,kivy
I wanted to make my first Kivy game, with enemies which run over the screen and the player is supposed to kill the enemies by clicking on them. I created an Enemy class which is part of a level class, both are subclasses of the class Widget. I made a...

Delete the checkout botton in sidebar

wordpress,delete,widget,woocommerce
I want to remove the woo commerce checkout botton on the right widgetbar wich says Kasse. http://vinesso.dk/produkt-kategori/vine/ Can anyone help me?...

Tkinter: widgets not highlighting on event

python,tkinter,widget
I'm running Python 2.7.9 on a Mac. I've been unable to figure out why it is when I run my programs that only the Entry Widgets highlight each time I hit the Tab key to move to the next widget. Following is some test code. When I run the script...

how to change bg color of button after pressing and get back to previous color

python,button,tkinter,widget
In the below program i want to change the background color of the button to green after pressing it and changed color should remain for 2seconds and later change back to original color. Is there a way to do? import tkinter as tk class MyGui(tk.Tk): def __init__(self): super(MyGui, self).__init__() self.create_widgets()...

Custom Widget in Yii

php,yii,view,widget
I create new widget like this: class MyMenu extends CWidget { public function init() { } public function run() { $Items = array( array('label'=>'Home', 'url'=>array('/site/index')), array('label'=>'Add User', 'url'=>array('/user/register')), array('label'=>'View Users', 'url'=>array('/user/index')), array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest), array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'),...

Shuffling list of widgets? Tkinter

python,json,tkinter,widget,shuffle
Finally I have finished this damn thing! Except for one issue. I have a program quiz program created with tkinter that grabs a dictionary from a list inside a JSON file. Now everything appears to be working fine, except for the shuffling of a list of buttons which remain in...

Update widget when preferences changed using custom broadcast

android,widget,android-broadcast
I need to update my app's widget every time the settings are changed by the user. I have a settings activity: import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; public class SettingsActivity extends Activity implements SharedPreferences.OnSharedPreferenceChangeListener { public static final String customIntent = "CUSTOM_SETTINGS_CHANGED"; @Override protected void onCreate(Bundle savedInstanceState) {...

C# Winforms event for both scrollbar buttons?

c#,winforms,events,widget,scrollbar
Is there an event for each of the two buttons in the vertical scrollbar widget? I'm using Winforms in C#....

How to specify separate toolbar group for widget buttons?

widget,ckeditor,toolbar
By default CKEditor places widget buttons in the toolbar 'insert' group. I'd like to specify a custom group on the toolbar only for my widget buttons. How can I do that?

JQuery tablesorter math widget with output widget

jquery,widget,tablesorter
I am using jquery tablesorter and was able to use the filter and math widget. I am now trying to export the table to csv with the use of the output widget and it's working fine except I cannot find a way to export the footer that uses the math...

Custom sonar plugin and widget, display the same sonar measure from multiple projects

widget,sonarqube,sonarqube-5.0
I have sonar 5.1 set up with multiple projects lets say project A and project B, and have ran analysis on both. I am able to import my coverage and test result files into both and every thing looks fantastic. What I would like to do is to pull the...

CKEditor - How to use the Advanced Content Filter and widgets together in 2 editors

javascript,widget,ckeditor
I've got 2 CKEditor instances. One editor (A) supporting a number of widgets, another editor B has an Advanced Content Filter with these settings to make sure only <p>, <br>, <em> and <strong> tags are allowed in the second editor: config.allowedContent = 'p br em strong'; My widget contains an...

Text widget to fill half of screen

python,tkinter,widget
I have a python tkinter program and i have two text widgets that need to be side by side. How can i get the two widgets to take up exactly half of the window which is 400 x 400 px ? My Code is here import tkinter class MyApp: def...

Kivy: 'NoneType' object has no attribute 'bind'

python,widget,kivy,attributeerror
I was testing out the ActionBar widget of Kivy, here is my program - from kivy.app import App from kivy.lang import Builder from kivy.uix.boxlayout import BoxLayout Builder.load_string(''' <RootWidget>: ActionBar: pos_hint: {'top':1} ActionView: ActionButton: text: "Button" ''') class RootWidget(BoxLayout): pass class MainApp(App): def build(self): return RootWidget() if __name__ == "__main__": MainApp().run()...

How to Create Dojo Widget using C3

javascript,dojo,widget,c3
I couldn't find any example describing the creation of Dojo Widget using C3 library. Before trying to create a widget, I tried to create a module, and it worked. I am new with Dojo ... so here is what I tried to create a Widget with c3 : require([ "dojo/_base/declare",...

Login/Register and Currency Widget in Header Wordpress

php,css,wordpress,header,widget
Woocommerce, Wootique Theme, Currency Widget. Right what I want to do it to have the currency converter plugin and my Login/Register link in the in the top right corner of the header to the right of my logo like so: Login/Register |CURRENCY BOX| (On the same row) The currency converter...

Android widget stops working after a while?

android,widget,broadcastreceiver,appwidgetprovider
I have a flashlight app with a widget. The widget is used to turn the flashlight on and off and does not display main activity or anything. After a few hours, however, the widget does nothing. I mean if you click it, nothing happens. I have two classes to accomplish...

Use form field with select2 widget in smarty yii

widget,smarty,yii2
I would like to use this example from Kartik with Smarty. use kartik\widgets\Select2 // Usage with ActiveForm and model echo $form->field($model, 'state_1')->widget(Select2::classname(), [ 'data' => array_merge(["" => ""], $data), 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => [ 'allowClear' => true ], ]); In Smarty only the field...

Individual Pending Intent for each button on widget

android,android-intent,widget,android-widget
first of all sorry for my bad english I have a AppWidget that use a Intent Service for doing its job my app widget has 3 buttons , and if user press each button go to main activity , but with different ContentViews , Now the problem is any Time...

Wrong widget order using vbox layout PyQt

python,widget,pyqt
I am trying to put a QLabel widget on top of (ie before) a QLineEdit widget edit. But it keeps appearing after the QLineEdit widget. My code, class CentralWidget(QtGui.QWidget): def __init__(self, parent=None): super(CentralWidget, self).__init__(parent) # set layouts self.layout = QtGui.QVBoxLayout(self) # Flags self.randFlag = False self.sphereFlag = False self.waterFlag =...

Having trouble getting widget to display milliseconds

c++,time,widget
So I've been recreating a gamemode that Maiet made for gunz, called spymode. I have most of the inner workings finished, but I'm having trouble with a time display widget. I need it to display time in Minutes, Seconds, and Milliseconds (using int, not float). Minutes & Seconds work correctly,...

Android Widget, Intent on RemoteViews not fired in data present

android,android-intent,widget,intentfilter
In my AppWidgetProvider class, I'm programmatically adding some Button to the main layout through RemoteViews: static void updateAppWidget(......) { .. RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.main_widget); for (int i=0; i<maxViews, 4); ++i) { RemoteViews button = new RemoteViews(context.getPackageName(), R.layout.my_button); String number = numbers.get(i).getCode(); // Test1 Intent actionIntent = new Intent("MyIntent");...

Unable to upload widget to Wirecloud instances in private server

widget,fiware,fiware-wirecloud
We have downloaded and installed a running instance of Wirecloud in our company server following the steps at: https://conwet.fi.upm.es/wirecloud/install We created the instance using the --quick-start command to try the instance, and ran wirecloud using the Django internal web server with the following command: $ python manage.py runserver 0.0.0.0:8080 --insecure...

How to use dygraphs and DT in slidify?

html,widget,slidify
I'm trying to use the packages DT and dygraphs into my slidify presentation in R. However, it seems it's not as straightforward as I thought. Is there any extra command I need to add in order to use the htmlwidgets produced by the datatable() and dygraphs() commands?

changes axis of scatter plot with slider matplotlib python

python,matplotlib,widget,scatter-plot
I have a very large data set and want the user to be able to slide along the axis to view sections of the data. I'm trying to leverage off of the slider example but I'm unsure of how to update the graph. Hoping someone can explain some of the...

PyQt progress bar not updating or appearing until 100%

python,widget,pyqt,pyqt4
EDIT: There are a number of similar posts on PyQt4 progress bars not updating. They all focus on the issue of threads & where the program actually updates the window. Although helpful, my code was so structured that the replies were not practical. The accepted answer given here is simple,...

Magento: register custom template files for static block widget

php,magento,templates,widget,themes
I am starting to learn how to work with Magento. I like the concept of static block and that it is so easy to add them to a cms page using the static block widget. The widget gives me a dropdown where I can choose what template file it should...

Qt: how to detect whether a widget is selected?

c++,qt,widget,focus,selection
I didn't see any signal/slot/function that could tell me whether a widget is selected by mouse? Is it possible to have such an function to tell me whether the current QWidget is selected? And How could I differentiate between "the current widget is selected" and "one of its child widget...

Iframe not loading fully within horizontal scrolling Div

html,css,iframe,widget,horizontal-scrolling
I am trying to put a iframe within a horizontal scrolling div so that users can scroll across and see the Instagram posts. The issue that I am having with this is when the page loads it cuts off what ever is larger than the div. How do I load...

Launch an app on iOS using taps

ios,widget
I would like to know if it is possible to launch an app on iOS that is currently in the back group using three taps for example ? Think of it as a short cut on a desktop app. Thanks

Extjs cannot read property error

java,javascript,jquery,extjs,widget
I made the following extjs code, but I get the error "cannot read property 'dom' of null" when I add the properties 'width' and 'height' However the button is well resized and the table is working fine, but cause of this error my dropdown menu doesn't work properly. Does anybody...

Wordpress Widget: Don't display $before_title and $after_title if title is empty

wordpress,widget
If the wordpress widget title is blank or empty, then don't display the $before_title and $after_title wrapping the title. Right now if the title is empty, you can end up with . If there are margins set for h2.widgettitle then you end up with blank space. In reality, $before_title and...

UIButton doesn't appear on iOS Today Widget

ios,objective-c,uitableview,uibutton,widget
I am creating a today extension for my app, but there are some errors that I can't quite understand: First: Everything is Ok on the storyboard, but the button doesn't appear on the widget. Second: When the tableview has more than one cell, the last cell gets cut. Third: CellForRow...

Cannot update Android Widget using AlarmManager and Calendar

android,widget
I want to update my widget but it simply doesn't work! I made it so that the update happens at particular time - a few minutes after I run the app, but widget doesn't get updated. I know this because I am setting the label with the System.currentTimeMillis. When app...

Fetching query string parameters passed in a javascript file

javascript,jquery,widget
I have used this tutorial to create a JS based widget. One thing I need to do is to pass query string parameters in JS file. I tried document.location.href but it gave the URL of page where widget was placed(which is quite obvious) Code is given below: <script src="http://example.com/widget.js?id=2" type="text/javascript"></script>...

Find the time since index.php was last visited, widget

php,html,widget
Ive done a fair amount of trawling the internet to find a solution to this issue however am still yet to find a real answer. I would like to have a widget on my site that shows the user how long in seconds, it has been since someone had last...

Kivy - Create new widget and set its position and size

python,python-3.x,widget,kivy,custom-widgets
got a little problem. So Iam trying to create my own widget, and i have succeed, only except for setting its size and position right(to be same as its parrent). class Story(App): def build(self): return MyWidgets().init() The app has GridLayout as a holder, into which i want to pass the...

Create a Widget system like WordPress without any framework

php,widget
I have searched for this topic here and Google but I only found the solutions with PHP frameworks (for example, YII and Laravel) I am developing a simple CMS and I would like to add widget system just like WordPress ( Recent Comments, Categories widgets ) List available widgets. Users...

Use different library instead of jQuery Mobile for