《刑警转型:意外“麻麻”的背后》
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
- 完結363 章
再見歌神
只是帶著外甥女去看了一場演唱會,沒想到竟然被選為了幸運觀眾,而且還被邀請上臺和天後共同演唱。然而,你對這個機會並不感興趣,因為這個世界的文娛十分落後,而你的前世卻是一位名震歌壇的巨星。現如今,你只想享受平靜的生活,不想在爾虞我詐的娛樂圈裏膽戰心驚地活著。 就在這時,外甥女歪著頭,眼裏全是迷惑不解:“舅舅,你怎麼還不上去啊?” 你低著頭看著安然,說道:“安然,你想要舅舅上去嗎?” “我想看你跟蘇然姐姐一起唱歌。安然很久沒看見你唱歌了。” 此時你沉默了,因為前世的陰影,穿越之後你確實沒再唱過歌。你看著眼前的安然,隨後摸了摸她的頭說道:“安然想聽的話,那舅舅上去唱給你聽。”
8.18 25113 - 連載582 章
楓葉魔改
完了,徹底完了。龍國最新研製的六代戰機,僅是首次試飛,就被自家的赤盾防空導彈襲擊。防空導彈以30馬赫的超高速接近,一時間無法捕捉到六代機的身影。可受到威脅的六代機卻不顧危險,自動解除了警報,並主動放慢速度不讓其丟失目標。直到導彈能量耗盡也未能擊中。
8.33 18841 - 完結554 章
瘋狂喝酒
明明覺醒了喝酒就變強的酒劍仙系統,卻穿越到了一個禁止飲酒的劍宗當中。宗門弟子非出任務不得隨意外出,這導致原本廢物的你變得更加廢物。直到這次,你獲得了外出採購的機會,於是你便下山喝了個酩酊大醉。怎料回宗時,卻意外闖入了宗門大師姐的房間。 伴隨著數道響徹雲霄的尖叫,近乎整個宗門的人都被驚動。而你,則是被一眾女弟子們扔到了廣場之上。
8.18 13207 - 連載846 章
南橘後悔
暑假時,爺爺不幸落水,恰巧被路過的7個富家千金救下,為了報恩,我成了她們的小跟班,每天跟在他們後面拎包跑腿。直到爺爺去世那天,他們在爺爺的墳前說,不用再讓我當牛做馬了,只要幫他們各自完成一個願望後,我就可以追求自己的生活了,只是讓我沒想到的是,他們的願望,竟然都是想要成為家族的繼承人。
8.33 18031 - 完結316 章
五星大廚
危險的監獄竟然連一個看守都沒有,但是裏面的囚犯卻不會逃跑,而且每天還有很多人擠破頭想進去,只為能吃一口我做的牢飯。世界首富散盡家財,也只為一個進監獄的名額,只因我隨手做的一碗飯就能讓瞎子複明;不孕不育的女人吃過我做的飯就能懷孕;就連植物人聞到我做飯的香味都能醒來。
8.18 7940 - 連載259 章
一心為書
明明是無法修行的凡人子弟,卻被派去看守大陸最危險的境地。這裏不僅關押著大地境者,還藏有包羅萬象的神通秘笈。我本以為生命進入了倒計時,殊不知,自己的職責只是瞭解秘笈的分佈。
8.18 5974