Implementation of RadioButton control in Kivy
1. Import dependency module
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.behaviors import ToggleButtonBehavior
from kivy.core.window import Window
from kivy.utils import get_color_from_hex
# Still full screen display
Window.fullscreen = False
# Set the form background color to wh ...
Posted by Goose87 on Tue, 26 May 2020 22:02:45 -0700
guava EventBus learning two source codes
Part I This paper introduces the use of event bus in guava package, and deeply understands the implementation details in the source code
EventBus
understand
First of all, we need to look at the EventBus class. There are many comments on the class, which are summarized as follows:
Eventbus ensures that subscribers will not be accessed at the sam ...
Posted by porta325 on Mon, 25 May 2020 18:25:41 -0700
php get form data
php form embed php code in Web page
1. Add PHP script to HTML tag
In the process of Web coding, PHP is an embedded language that can be mixed with HTML. You can add PHP script tag <? PHP...? > to HTML at any time. All the text between the two tags will be interpreted as PHP, and any text outside the tag will be considered as ordinary HT ...
Posted by sell-traffic on Sun, 24 May 2020 18:54:52 -0700
IView (view UI) multi graph upload
@Official documents
1. Install iview2.0
cnpm install view-design --save
2. Introduce the ViewUI. Part of the note is @Last article For example, in this article, the version upgrade must be commented out, but uninstall does not
// import iView from 'iview';
// import 'iview/dist/styles/iview.css';
import ViewUI from 'view-design';
im ...
Posted by don117 on Sun, 24 May 2020 08:39:00 -0700
Day 10: Python classes and objects
by programmer
When we first came into contact with programming, we learned that there are two major ideas in the field of programming: process oriented and object-oriented. Python is an object-oriented language. If you have known the idea of object-oriented, naturally you know that the idea of object-oriented contains two basic concepts: ...
Posted by clairian on Sun, 24 May 2020 02:29:45 -0700
UITableView to modify the font size of its own retrieval column
�
UITableView can't be modified by using its own retrieval column. How to modify it?
Get UITableViewIndex before HeaderView will display
-(void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section {
for (UIView *view in [tableView subviews]) {
if ([view isKindOfClass:[NSClassFromStr ...
Posted by steveh62 on Sat, 23 May 2020 08:07:25 -0700
vue image upload
@Official documents @Reference blog1,@Reference blog 2
Final effect:
realization:
After the introduction of iView, an error is found, and the error information can be referred to @Reference blog 1, according to the blog Guide
cnpm uninstall vue-cli -g
cnpm install -g @vue/clivue init webpack yanancnpm install vue
Then i ...
Posted by corruption on Sat, 23 May 2020 07:10:01 -0700
JavaScript Statistics Processing - Encapsulation and Inheritance of Classes
JavaScript is a widely used Web programming language.
Using JavaScript technology to process statistics in browsers has the best dissemination effect
A class is a collection of common attributes and methods.JS is an object-oriented language whose objects as objects are simulated and encapsulated using the prototype property.
The cl ...
Posted by BLaZuRE on Fri, 22 May 2020 19:13:38 -0700
Ref realizes navigation and rolling positioning
abstract
In development projects, there is often a need to click jump to scroll to the anchor. The simplest anchor location is to give a tag a, a tag's href = 'anchor', and then give an id = 'anchor' to the anchor to jump. Referring to the simplest way to realize the jump of anchor point, useRef is used in React to realize the function of jump ...
Posted by smarty_pockets on Fri, 22 May 2020 08:52:14 -0700
The operation instruction of Flutter's RenderBox & principle analysis
This paper is based on the source code analysis of version 1.12.13+hotfix.8.
catalog
catalog
1, Usage of RenderBox
1. Basic flow of using RenderBox
(1) Measurement
(2) Draw
(3) Update
2,RenderObjectWidget
(1) Introduction
(2) Usage
3. hitTest of non container ...
Posted by redarrow on Thu, 21 May 2020 22:55:26 -0700