《刑警转型:意外“麻麻”的背后》
Advertisement
過窗簾的隙,懶洋洋地灑在安靜的客廳裏。李夢婷坐在沙發上,手中翻著手機,屏幕上閃爍著一條條短信,都是同事們關心的問候。輕嘆一口氣,合上手機,眼神中出一無奈。
“雅娜,你打算什麼時候回去上班?”章天翊的聲音從廚房傳來,帶著一關切。
李夢婷聞聲抬頭,看到章天翊手中拿著鍋鏟,正專注地翻炒著菜肴。的臉上出一個溫的微笑:“廣耀,我可能還要休息一段時間。你知道的,我最近不太好。”
“別擔心,子要。”章天翊放下鍋鏟,走到李夢婷邊,輕輕拍了拍的肩膀,“家裏的事有我在,你就安心養病。”
李夢婷眼眶微紅,激地看了章天翊一眼,然后轉過頭去,希掩飾住自己的緒。就在這時,門鈴突然響起。
“我去看看。”章天翊說著,轉走向門口。
門打開,門外站著的是趙云飛。他的材魁梧,臉上帶著一抹不易察覺的微笑。
“天雨,你在家嗎?”趙云飛的聲音過門傳來。
李夢婷的心猛地一跳,知道,趙云飛是來接張凌霄去他那裏。
Advertisement
“天雨在學習,讓先不用出來。”李夢婷轉,走到門口,剛要說話,卻發現趙云飛的面容有些不對。
“雅娜,我有點事要找你談談。”趙云飛的聲音低沉,帶著一急切。
李夢婷愣了一下,隨即打開門,邀請趙云飛進來。
“坐吧。”李夢婷說著,指了指沙發。
趙云飛猶豫了一下,最終還是坐在了沙發上。他深深地吸了一口氣,然后說道:“雅娜,我想跟你談談我們的事。”
李夢婷的心一,抬起頭,與趙云飛對視。趙云飛的眼神中充滿了認真和堅定。
“我有我的生活,我的工作,我不能隨意改變。”李夢婷的聲音平靜而堅定。
趙云飛沉默了片刻,然后說道:“我知道,但我想要一個承諾,一個關于我和你孩子的承諾。”
李夢婷的心猛地一沉,沒想到趙云飛會這樣直接。沉默了許久,最后終于開口:“天龍,我……”
就在這時,張凌霄從房間裏跑了出來,看到趙云飛,立刻開心地道:“二哥!”
趙云飛起,笑容滿面地抱起張凌霄, duplicates Tcl-Tk's `pack`, `grid`, and `place` geometrical arrangement methods in Python. These methods allow for building graphical user interfaces (GUIs) by arranging widgets within a window in various configurations.
Here's how you can implement similar functionalities to `pack`, `grid`, and `place` in Python:
### 1. Pack Layout
The `pack` layout manager arranges widgets in a single row or column. Widgets expand and contract to fill spaces in the container.
```python
import tkinter as tk
def create_pack_layout():
root = tk.Tk()
root.title("Pack Layout Example")
# Create labels
label1 = tk.Label(root, text="Label 1")
label2 = tk.Label(root, text="Label 2")
label3 = tk.Label(root, text="Label 3")
# Pack the labels
label1.pack(side="left", fill="x")
label2.pack(expand=True, fill="both")
label3.pack(side="right", fill="y")
root.mainloop()
create_pack_layout()
```
### 2. Grid Layout
The `grid` layout manager arranges widgets in a grid of rows and columns. Widgets can expand and contract in both directions.
```python
import tkinter as tk
def create_grid_layout():
root = tk.Tk()
root.title("Grid Layout Example")
# Create labels
label1 = tk.Label(root, text="Label 1")
label2 = tk.Label(root, text="Label 2")
label3 = tk.Label(root, text="Label 3")
label4 = tk.Label(root, text="Label 4")
label5 = tk.Label(root, text="Label 5")
# Grid the labels
label1.grid(row=0, column=0, sticky="nsew")
label2.grid(row=0, column=1, sticky="nsew")
label3.grid(row=1, column=0, sticky="nsew")
label4.grid(row=1, column=1, sticky="nsew")
label5.grid(row=2, column=0, columnspan=2, sticky="nsew")
root.mainloop()
create_grid_layout()
```
### 3. Place Layout
The `place` layout manager allows precise positioning and sizing of widgets. Widgets are placed using coordinates or relative sizes.
```python
import tkinter as tk
def create_place_layout():
root = tk.Tk()
root.title("Place Layout Example")
# Create labels
label1 = tk.Label(root, text="Label 1")
label2 = tk.Label(root, text="Label 2")
label3 = tk.Label(root, text="Label 3")
# Place the labels
label1.place(x=50, y=50, width=100, height=50)
label2.place(relx=0.5, rely=0.5, anchor="center")
label3.place relwidth=0.5, relheight=0.5)
root.mainloop()
create_place_layout()
```
By implementing these methods, you can create a variety of layouts for your Tkinter GUIs, similar to those provided by Tcl-Tk's `pack`, `grid`, and `place` layout managers.
Advertisement
- 完結546 章
李家少年
我只是把蜜蜂的主管放入湖泊中,竟然能讓水越過堤壩往高處流。眾人歡呼不已,這是旱災以來第一次有水入田。二叔伯顧謙更是忍不住連連點頭:“水往高處流,這是怎麼做到的呢?”
8.18 19348 - 完結800 章
風之色膽
老婆明明是身家千億的上市公司總裁,可你卻一心想要和他離婚。不僅拒絕了他送給你的上億別墅,還當場撕毀了他給你的百億支票。只因3天前,你帶著3個女兒去做了親子鑒定。但結果顯示,3個沒有一個是你親生的。 原來,你的頭頂早就變成了呼倫貝爾大草原。於是你拿出鑒定結果,要求跟妻子離婚。不料妻子不僅拒絕你的離婚請求,還不承認鑒定結果。
8.18 12696 - 連載829 章
喵喵老六
這裏的屍體都代表著一種超能力,只要獲得一具就能成為超人。可我卻一把火將他們全部燒毀,只因我覺醒了火球掠奪天賦。只要焚燒一具屍體,就能獲得屍體生前的天賦和屬性。 而前世的我,直到第5天才發現火球的真正用處在於焚屍。雖然我比別人落後5天,但還是靠這一逆天能力迅速崛起。可即便吸收了眾多S級的天賦,也還是隕落在殺戮遊戲的特殊玩法中。 但就在我睜開眼睛時,卻驚奇地發現自己回到了末世降臨的第一天。如今,帶著前世記憶的我決定要不惜一切代價便強活下去。開局若要行動,必須要先找到一個冤大頭替自己打關,然後我再偷偷升級。
8.18 16208 - 連載443 章
花樣摳門
參加一檔省錢綜藝,別的嘉賓不是挨餓,就是吃最便宜的泡面,而我則是坐在火鍋燒烤店裏享受免費的午餐。
8.18 4500 - 連載102 章
天魔神眼
我只是長了一雙能看穿萬物的天魔神眼。未婚妻說這雙眼睛是他的,要我挖出來給他看看。可我不僅真的挖出來給了他,還散盡修為,助他成為絕世女帝。但沒想到在他功法大成後,卻帶著我的重瞳和別的男人私奔了。 就在我懷疑自己悲催的人生時,竟發現自己的老爹是這方天地最強的萬古魔帝。
8.18 3309 - 連載588 章
達之覺悟
奄奄一息地躺在病床上,然而,結婚 20 年的妻子卻絲毫不打算救你,還果斷親手拔掉了你的氧氣管。 就在你生命的最後一刻,妻子高興地貼在你耳邊告訴你:“這些年,我從來都沒愛過你。只有你死了,哈哈,我們一家三口才能團聚。” 這一刻,你才知道自己以往的付出是多麼的愚蠢。 可如今後悔也沒用,等待你的,是獨自一人淒涼地死在醫院裏。
8.57 10226