PyQt4 QSpinBox.selectAll() not working as expected

Python 2.5.4 PyQt4 I sub-classed a QDoubleSpinBox to emit a signal on a focusIn event: #Custom widgets for DPL GUI from PyQt4.QtCore import * from PyQt4.QtGui import * class...

Full width tabs using Bootstrap (Support IE)

I'm trying to adjust Bootstrap tabs to make them span the full width of their container. Here's my code (a minimal working example): <!doctype html> <html lang="en"> <head> <meta...

Add custom data to breeze metadata on server

In a app I'm developing I create some UI widgets that are generated based on breeze metadata and attributes on my classes and properties. So on the server I read the attributes, and add them on...

Subclassing with Tkinter

I am making an application with python. It is all working. So far everything is in one source file. You start small, and then it all grows. I got to a point where the code gets pretty hard to...

In GTK/Linux, what's the correct way to get the DPI scale factor?

Context: Writing a drawing program that's supposed to be cross-platform. So I have multiple frontends responsible for providing a backend class access to a Cairo context, basic event handling, and...

Frame object in tkinter not grouping widgets

I have just started to use the tkinter module. I am trying to group different widgets together into an entirely new widget using one of my custom classes which inherits from the Frame object and...

Add custom options to symfony form

1 What i want to do is add custom (option is 'angular' in this case)option to my form widget template: {%- block widget_attributes -%} id="{{ id }}" name="{{ full_name }}" {%- if angular...

How to recognize that an application is running in dark theme on Linux?

I've developed an application which uses qscintilla as a text editor. I also implemented custom lexer to highlight language specific keywords. So far styles for highlighted keywords are hardcoded...

Scaling the non-client area (title bar, menu bar) for per-monitor high-DPI support

Windows 8.1 introduced the ability to have different DPI settings for different monitors. This feature is known as "per-monitor high-DPI support." It persists and has been further refined in...

Android nested touch handling

I have a ViewPager inside a custom pager. Both swipe in horizontal direction. As I understood the Android touch model, my custom pager should monitor touch events going through...

Customising the output of items using django-autocomplete-light v3

In earlier versions of django-autocomplete-light you could use a template to render each returned entry, which included the ability to insert custom HTML I can't figure out how to do that using...

How to make a window with labeled spinbox in C++ using WinAPI

I've spent a day trying to make working such a simple thing as this: All i need is to be able to programmatically get value, set value, and of course allow user to set value by writing into the...

Django's admin does not login after custom authentication

The custom authentication I wrote follows the instructions from the docs. I am able to register, login, and logout the user, no problem there. Then, when I create a superuser python manage.py...

Adding CSS class to div with unique ID

So, I am really new to CSS. I am developing a site for the company I work for using WordPress. I know, WordPress "NOOB ALERT." Anyway, I am using the massive dynamic theme and was hoping to get...

Displaying notification badge on BottomNavigationBar's Icon

I'd like to display notification badge (a colored marble) on the top right corner of BottomNavigationBar's Icon widget when a new message has arrived in the inbox tab. It is similar to...

Android Proguard - Build fails when shrinkResources is true

I am trying to build a project with proguard enabled. It works fine if I use shrinkResources false but build fails when shrinkResources is true with error Error:The string "--" is not permitted...

Custom Card Shape Flutter SDK

I just started learning Flutter and I have developed an app with GridView. GridView items are Card. Default card shape is Rectangle with a radius of 4. I know there is shape property for Card...

Failed to resolve dependencies of Vaadin 7.6.2 with Ivy

I can't resolve the my vaadin 7 project using Apache Ivy. Whenever I tried, it shows an error box which says 'IvyDE resolve' has encountered a problem. Some project fails to be resolved. On...

Getting screen size in a class without buildcontext in Flutter

I am trying to get screen size in flutter inside a custom class which donot have build method in it. How can i get screen size without using buildcontext class? The following code : class...

Flutter Scaffold.of(context).openDrawer() doesn't work

I want to open a drawer after pushing on the custom button in BottomMenu I have trouble with Scaffold.of(context).openDrawer(), it doesn't work. My BottomMenu is a separate widget class. As I...

Flutter app architecture using "modules" with provider package

I've been coding an app in Flutter since few weeks now and started wondering what the best architecture could be a few days ago. A little bit of context first: It's a messaging app using Firebase...

django custom user model form widgets working only for email and name field

in my custom user model that is created with AbstractBaseUser when i try to add widgets which lets me add classes or place holders or input type etc.. it works only for the full_name and email...

kivyMD APK crashes on start up (android)

I help me figure out what the problem may be. Hi, I am having issues running my Kivy MD app on an android device. After compiling my app into an apk I use a USB stick to transfer the file onto an...

Flutter: how to build a custom toolbar for Selectable Text~

I'm building a ChatApp, and I need a feature that can allow user to select text from the widget, and also show some of my custom actions, such as Deleting that message, Share etc. And I found that...

The method '[]' was called on null. Receiver: null Tried calling: [](Instance of 'DateTime')

I have a calendar in my project and I have a button to add events to dates in that calendar. When I am trying to press the add button to add an event I am getting The method '[]' was called on...

Kivy apk built by buildozer crashes soon after displaying presplash screen

I am new to Kivy and using buildozer. However, I've followed the instructions from buildozer.readthedocs and run "buildozer -v android debug deploy run logcat > my_log.txt" as best as I can, yet,...

Flutter AdMob | The app starts to lag after implementing ads

I'm working on an audiobook listening app. There I have my main page, which consists of 3 page widgets linked through a Page View that I can swipe to navigate through these pages. On each page I...

Find and Replace text in an HTML iframe "srcdoc" attribute using Javascript

tldr: I'm looking to keep the other text in the srcdoc attribute of an iframe alone, but only swap out the link to the stylesheet using vanilla Javascript. Longer version: I'm customizing a Publii...

Flutter Navigator 2.0 - Router does not receive deep link when app is launched from URL?

I'm using Flutter Navigator 2.0 with Nested Routers - there's a main router created by calling MaterialApp.router() and child routers created as Router() widgets with proper RouterDelegates (child...

How does CustomPainter.shouldRepaint() work in Flutter?

In Flutter, when creating a CustomPainter, there is an override method, shouldRepaint() that you can return either true or false... presumably to tell the system whether or not to repaint the...