This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkkit import * | |
from shutil import copytree | |
import fitz | |
from PIL import Image | |
import re | |
import os | |
app = TKApp('My App') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def on_change_content(): | |
return UpdateElement('detail_card', content=[ | |
DetailGroup('Refund Request', content=[ | |
DetailItem('Ordre No.', 1100000), | |
DetailItem('Status', "Fetched"), | |
DetailItem('Shipping No.', 1234567), | |
DetailItem('Sub Order', 1135456) | |
]), | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.page('/', 'Dashboard') | |
def form_page(): | |
return [ | |
Row([ | |
Column([ | |
ChartCard('Total Sales', '$126,560', 'The total sales number of xxx', height=50, | |
content=[BarChart(visit_data, show_axis=False, height=50)], | |
footer=[Statistic('Daily Sales', '$12423', inline=True)]) | |
]), | |
Column([ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from adminui import * | |
app = AdminApp() | |
def on_submit(form_data): | |
print(form_data) | |
@app.page('/', 'form') | |
def form_page(): | |
return [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib inline | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
plt.rcParams['font.sans-serif']=['SimHei'] # for displaying Chinese characters correctly | |
plt.rcParams['axes.unicode_minus']=False # for displaying the minus sign correctly | |
df = pd.read_excel('E:\Work\path_to_excel_file.xlsx') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
IB_DESIGNABLE | |
@interface MBFlipImageView : UIImageView | |
@property (nonatomic) IBInspectable UIImage *onImage; | |
@property (nonatomic) IBInspectable UIImage *offImage; | |
- (void)flipOn; | |
- (void)flipOff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface UIColor (HexString) | |
+ (UIColor *) colorFromHexString:(NSString *)hexString; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface UIColor (HexString) | |
+ (UIColor *) colorFromHexString:(NSString *)hexString; | |
@end |
NewerOlder